Object

Bounds3D Class

Represents a bounding volume, useful for simple collision and visibility testing in RB3DSpace controls. A Bounds3D can represent either an axis-aligned bounding box or and a bounding sphere.

Properties
Center
Maximum
Minimum
Radius
Type

Methods
ContainsPoint
Intersects
InView
LineIntersection
LineSegmentIntersection

# Notes

# Constructor Syntax

This table shows how to create either a bounding box or sphere.

Syntax | Parameters | Description
--- | --- | ---
New Bounds3D | Center as Vector3D Radius as Double | The constructor for a Bounds3D sphere.
New Bounds3D | Minimum as Vector3D Maximum as Vector3D | The constructor for a Bounds3D box.

As indicated in the Methods table, some of the tests are not exact; in hard-to-decide edge cases, Bounds3D returns True, which indicates that two objects overlap or an object is visible (InView). This means that a return value of True may indicate a need for more detailed tests, but a return value of False indicates that no further testing is necessary.

Currently, the Line intersection tests treat all Bounds3D volumes as bounding spheres.

# See Also

ColorList, Element3D, Group3D, Light3D, Material, Object3D, Quaternion, TriangleList, Trimesh, UVList, Vector3D, VectorList classes; RB3DSpace control.