cone(gert) Gert cone(gert)
NAME
cone
DESCRIPTION
Cone is a geometry object. It represents a unit cone surface relative to local coordinate system (x^2 + z^2 =
y^2). The surface is bounded by planes y = 0 and y = 1,
disk x^2 + z^2 <= 1, y = 1 is included (cone is "closed",
see also conic object). Since cone is a subclass of assembly, this geometry transforms into an arbitrary elliptical
cone surface.
SUPERCLASS
geometry
INSTANCE VARIABLES
face_number
is the private instance variable used for ray-cone
intersection identification.
MESSAGES
intersect!
finds ray-cone 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.
*/
cone_1 := cone{
scale= (35,39,45)
position=(0,0,15)
properties=blue
};
SEE ALSO
ray, geometry, conic, cylinder, sphere, properties
Please send comments and suggestions toconsult@rpi.edu