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

cylinder(gert) Gert cylinder(gert)

NAME

cylinder

DESCRIPTION

Cylinder is a geometry object. It represents a unit cylinder surface relative to local coordinate system (x^2 + z^2 = 1, 0<= y <=1). Since cylinder is a subclass of assembly, this geometry transforms into an arbitrary elliptical cylinder surface.

SUPERCLASS

geometry

INSTANCE VARIABLES

face_number is the private instance variable used for ray-cone intersection identification.

MESSAGES

intersect! finds ray-cylinder intersection.

near_far! calculates and returns supporting plane displacement for each of plane_normals.

normal! sets the normal to the surface.

row_products! calculates a matrix of pairwise scalar products of scene_to_local_transform. This matrix is used by "normal!" method.

transform_bounding_volume! transforms bounding volume center and radius to the global coordinate system.

EXAMPLE

/* Blue below should be defined as properties objects in GERT, DO NOT CONFUSE with property object in OSCAR. */ cylinder_1 := cylinder{ scale= (35,39,45) position=(0,0,15) properties=blue };

SEE ALSO

ray, geometry, block, cone, cone, sphere, properties


Please send comments and suggestions to
consult@rpi.edu