Core 1.0
|
How do I compute the area or the volume of a geometric primitive?
In general, create an instance of the geometric shape, and use aither the member functions Area() or Volume(). In some cases, static member functions have been implemented to avoid instanciation, for instance the area of a circle can be computed directly without creating a Circle:
How do I compute the bounding box of a given simple geometric primitive? Most primitives have a corresponding member function. For example, see:
In general those member functions do not yield the tightest bounding box, but a simple to compute and efficient one. See the details of the corresponding member function.
How do I compute the distance from a point to a geometric primitive?
Most geometric primitives, including Box, Sphere, Triangle, Cylinder, Circle or even QuadricCurve implement a specific member function. For example, see:
In general member functions compute the squared distance out of efficiency.