block(gert) Gert block(gert)
NAME
block
DESCRIPTION
Block is a geometry object. It represents a unit cube
bounded by planes x = 0, x = 1, y = 0, y = 1, z = 0, and z
= 1 relative to local coordinate system. Since block is a
subclass of assembly, this geometry transforms into an
arbitrary parallelepiped.
SUPERCLASS
geometry
INSTANCE VARIABLES
face_number
is the private variable used as index into blocks
faces.
MESSAGES
intersect!
finds ray-block intersection.
near_far!
calculates and returns supporting plane displacement for each of plane_normals.
normal!
sets the normal to the surface.
row_products!
this method exists for compatibility with other
geometry primitives. It does nothing.
transform_bounding_volume!
Transforms bounding volume center and radius to the
global coordinate system.
EXAMPLE
/*
White and blue below should be defined as properties objects in GERT,
DO NOT CONFUSE with property object in OSCAR.
*/
support := block{
scale= (35,39,45)
position=(0,0,15)
properties=blue
};
top := block{
scale=(50,2,75)
position=(0,39,0)
properties=white
};
table :=assembly{
parts=(support, top)
};
SEE ALSO
ray, geometry, cone, cylinder, sphere, properties
Please send comments and suggestions toconsult@rpi.edu