Because the cone_modeller is a subclass of new_modeller, it responds to the "data?" message and can be used in the display_data pipeline. In addition, cone_modeller also inherits the convenience routines from new_modeller (e.g., output!).
cap Whether or not to generate a cap for the base of the cone.
radius The radius of the cone. Defaults to 0.5.
height The height of the cone. Defaults to 2.0.
resolution? Get the resolution of the modeller.
radius[=?] Set/Get the radius
height[=?] Set/Get the height
cap[=?] Set/Get cap status
cap_{on,off}! Turn the cap on and off
/* * Create 3 cones of varying resolution */ cone_modeller new: cone_model1 resolution=1 ; actor new: triangle color=(1,0,0) modeller=cone_model1 ;
cone_modeller new: cone_model2 resolution=2 ; actor new: crossed_triangles position+ (2,0,0) color=(0,1,0) modeller=cone_model2 ;
cone_modeller new: cone_model3 resolution=3 ; actor new: three_d position+ (0,2,0) color=(0,0,1) modeller=cone_model3 ; /* * Rendering stuff */ camera new: c1 x_range=(0,5) y_range=(0,5) z_range=(0,5) position=(1,1,1) default! on! ;
environment new: _env variable=`LYMB_RENDERER' ; object# [_env value?] new: aren actors=[actor instances?] cameras=c1
render! ;