The structured grid outline consists of the edges of the mesh as defined the 12 extreme combinations of the i,j,k grid coordinates.
All other outlines consist of the 12 edges around the bounding box of the geometry data.
/* * read in the data */ string new: data_name=case1;
plot3d_reader new: areader file_prefix=data_name read! ; /* * Set up the data set */ string new: data_set = data_name + "_gridset01";
object# data_set compute_properties! ; /* * set up some displays */ display_outline new: outline data_in= data_set ; display_lines new: draw_outline
data_in=outline ; actor new: outline_actor color= (1,0,0) /* set the color of the outline red */ modeller= draw_outline ; /* * Lights, cameras, action */ vector new: bbox dimension=6; bbox = ([object# data_set bounds?]); camera new: acamera position=(1,1,1) x_range=([bbox @1 ?],[bbox @2 ?]) y_range=([bbox @3 ?],[bbox @4 ?]) z_range=([bbox @5 ?],[bbox @6 ?]) default! on! ;
light new: alight position=(30,30,50) on! ; /* * Create a renderer appropriate to the environment */ logic new: test; environment new: _env variable="LYMB_RENDERER"; test = [_env defined?] false: "#Environment variable LYMB_RENDERER must be set." false: "parser exit!;" ; string new: current_renderer = [_env value?];
object# current_renderer new: main_renderer actors=([actor instances?]) lights=alight cameras=acamera render! ; /* * Create a control panel to manipulate object */ environment new: _display variable="DISPLAY";
test = [_display defined?]
false: "# Please define DISPLAY variable for user interface"
true: "
SEE ALSO
computed_feature, visage_data_set, plot3d_data_set,
plot3d_reader, display_data
Please send comments and suggestions toconsult@rpi.edu