num_polygons The number of polygons in the cylinder_wedge geometry. This is just the number of polygons on the cylinder's surface plus two more for the ends of the cylinder.
phi1 The end angle of the cylinder_wedge. The wedge is the parte of the cylinder between 0 and phi1. Recall that the wedge has its center at the origin and its axis oriented along the y-axis.
num_polygons? Get the number of polygons. Like num_vertices, this value should not be set since it is computed by the cylinder_wedge_modeller when it builds itself.
open! Sends the geomtry to the rendering primitive.
renderer_name? Returns the suffix of the class name used to draw
the model on the graphics display.
generate_data! Builds the geometric representation of the wedge required by the rendering primitive.
return_data! Returns the data built by generate_data! instead of sending it to the rendering primitive. This allows another class in the system to use this geometry.
bounds? Returns the minimum and maximum x, y and z values of the wedge's vertices. This is used by the inherited "bounding_box?" method.
calculate! Recomputes all the vertices and polygons of the wedge according to the current value of "resolution", an inherited variable.
radius= Sets the radius of the wedge by sending itself a "scale+(r,1,r)" message.
height= Sets the height of of the wedge by sending itself a "scale+(1,h,1)" message.
phi1[=?+] set/get/increment the phi1 instance variable
cylinder_wedge_modeller new: the_model resolution=40 phi1= 120 radius= 2 ;
actor new: the_actor color=(.2,.6,.6) modeller=the_model;
environment new: env variable="LYMB_RENDERER";
camera new: c1 position=(7,2,0)
focal_point=(0.0,0.0,0.0) view_angle=45 on!;
light new: l1 position=(10,3,6) on!;
object # [env value?] new: aren actors=[actor instances?] cameras=[camera instances?] lights=[light instances?];
aren render!;
cue new: rotate duration=100 tick_actions="c1 azimuth:2;" ;
scene new: ascene cues=rotate duration=100 renderers=aren ;
ascene start!;
aren render!;