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

display_polygons(display) Display display_polygons(display)

NAME

display_polygons - a modeller to represent the polygon information in the display_data object.

DESCRIPTION

Display_polygons takes as input a display_data object, generating on output graphics primitives that represent the polygon information in display_data. Display_polygons 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 polygons are visible. The mask is a list of zero/non-zero values corresponding to the polygons in display_data. A non-zero mask value indicates that a polygon should be drawn, a value of zero indicates that the polygon should not be drawn. By default, all polygons 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, 1,0,0, 1,1,0, 0,1,0 ) scalars=( 10.2,12,31.3,24.5 ) polygons=( 4,1,2,3,4

) ;

display_polygons new: dp data_in=dd range=([dd range?]) ;

actor new: anactor modeller=dp ;

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