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

multislab(gert) Gert multislab(gert)

NAME

multislab

DESCRIPTION

Multislab is an object that used as bounding volume for geometries in hierarchies. It represents a volume bounded by a set of pairs of parallel planes. Each pair is perpendicular to one plane normal in a set of plane_normals. In case of thee plane normals we have a parallelepiped. The term multislab is used to cover the more general case when there are more than three plane normals. If three plane normals are orthogonal, we have regular parallelepiped.

SUPERCLASS

geometry

INSTANCE VARIABLES

near_far are displacements of planes perpendicular to plane_normals and delimiting the multislab volume in 3D space.

intersection is the parameter of the ray at the ray multislab closest to the ray origin intersection.

MESSAGES

intersect! sets intersection parameter of ray-multislab intersection.

intersection? returns intersection value.

near_far= argument sets near_far of an instance. At least 6 numbers are required (two for each plane_normal).

near_far? returns near_far of an instance.

o_n_products: argument sets ray origin plane_normal scalar products.

o_n_products? returns ray origin plane_normal scalar products.

plane_normals= argument sets plane_normals of the class (it is a class variable).

plane_normals? returns plane_normals.

reciprocal_d_n_products: argument sets ray reciprocal direction plane_normals scalar products

reciprocal_d_n_products? returns ray reciprocal direction plane_normals scalar products

unite: argument sets the near of an instance to the minimum of argument near and the instance's near and the far of an instance to the maximum of argument far and the far of an instance.

EXAMPLE

SEE ALSO

h_hierarchy, kh_generator, ray, block, cone, cone, sphere


Please send comments and suggestions to
consult@rpi.edu