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

display_triangle_strips(11/25/91)display_triangle_strips(11/25/91)

NAME

display_triangle_strips - a modeller to represent the triangle strip information in the display_data object.

DESCRIPTION

Display_triangle_strips takes as input a display_data object, generating on output graphics primitives that represent the triangle strip information in display_data. Display_triangle_strips is a modeller, that is, it provides the usual methods of a modeller including transformation.

All public instance variables are inherited from its superclasses. In particular the scalar_visibility instance variable is used to control whether the scalar data colors the output primitives (if scalar data is present in the input display_data), and the range instance variable controls the mapping of the scalar data through the lookup table.

Masks may also be used to specify which triangle strips are visible. The mask is a list of zero/non-zero values corresponding to the triangle strips in display_data. A non-zero mask value indicates that a triangle strip should be drawn, a value of zero indicates that the triangle strip should not be drawn. By default, all triangle strips are drawn.

SUPERCLASS

display_modeller

INSTANCE VARIABLES

none (inherited from super classes)

MESSAGES

none (inherited from super classes)

EXAMPLE

In this example a structured grid set is read and an outline is displayed.

/* * Create a display data object */ display_data new: dd points=( 0,0,0, 0,1,0, 1,0,0, 1,1,0, 2,0,0, 2,1,0 ) scalars=(

10.2, 12, 31.3, 24.5, 19.0, 17.0 ) triangle_strips=( 6,1,2,3,4,5,6 ) ;

display_triangle_strips new: dts data_in=dd range=([dd range?]) ;

actor new: anactor modeller=dts ;

environment new: _env variable="LYMB_RENDERER" ; renderer new: [_env value?] actors=[actor instances?] render! ;

SEE ALSO

display_modeller, modeller, display_points, display_surface, display_data, display_filter, data_outline


Please send comments and suggestions to
consult@rpi.edu