<<<<<<<<<<<<<<<<<

texture_map_to_plane(display)Displaytexture_map_to_plane(display)

NAME

texture_map_to_plane - generate s-t texture coordinates for each point in input display_data

DESCRIPTION

The texture_map_to_plane object takes as input a display_data object that must contain points. Each point is assigned a texture coordinate by mapping every point to a plane. The plane can be defined either manually (by specifying a normal) or automatically. Automatic generation of the plane normal is performed by using a least squares process.

SUPERCLASS

display_filter

INSTANCE VARIABLES

automatic boolean flag indicating whether plane is specified manually or created automatically. By default automatic is true.

normal the normal defining the plane. Note that only the normal is important: a point to define a particular plane is not necessary to perform the mapping.

s_range a vector of size 2 indicating the range into which the s texture coordinates are mapped into. By default the range is (0,1).

t_range a vector of size 2 indicating the range into which the t texture coordinates are mapped into. By default the range is (0,1).

MESSAGES

automatic=unknown command: wf2 value set the value of the automatic boolean variable.

automatic? get the value of the automatic boolean variable.

automatic_on!, automatic! turn automatic plane generation on.

automatic_off!, manual! turn automatic plane generation off.

normal=unknown command: wf2 (n1,n2,n3) set the normal for the plane.

normal? get the normal for the plane.

s_range=unknown command: wx font 2 I (s_min,s_max) set the range of s texture coordinates to map into.

s_range? get the range of s texture coordinates to map into.

t_range=unknown command: wf2 (t_min,t_max) set the range of t texture coordinates to map into.

t_range? get the range of t texture coordinatet to map into.

EXAMPLE

data_geometry new: case1_geo data_in=case1_gridset01 extent=(15,15,1,18,1,16) ; texture_map_to_plane new: ws data_in=case1_geo ; display_all new: draw data_in= ws ; actor new: plane_actor modeller=draw texture=`wood2' ;

SEE ALSO

display_feature, display_filter, data_geometry, display_data, texture, actor


Please send comments and suggestions to
consult@rpi.edu