Definition: A bounding box is a simple box that fully encloses a 3D object. Instead of thousands of polygons, the software calculates with eight corner points. Bounding boxes are the basis for fast collision checks, visibility tests and selection in almost every 3D application.
English: Bounding Box, Bounding Volume
German: Hüllquader, Begrenzungsrahmen
How It Works
There are two common variants:
- Axis-aligned bounding box (AABB): The edges are parallel to the axes of the coordinate system. It is formed from the smallest and largest X, Y and Z values of all vertices and is very fast to check. When the object rotates, the software must calculate it again, and it often becomes much larger than the object.
- Oriented bounding box (OBB): The box rotates with the object and fits more closely. The calculation is more complex, the test more accurate.
In addition to boxes, engines also use bounding spheres and nested hierarchies (bounding volume hierarchy) to search large scenes. In the glTF 2.0 format, the position data of each mesh stores its minimum and maximum values, which is an AABB that a viewer can read without calculating it again.
Importance in Mechanical Engineering
- Culling and performance: When the bounding box of a component is outside the field of view, the component is not drawn. This keeps large plants smooth in the browser through WebGL and in VR.
- Collision and simulation: In training and layout applications, the software checks the bounding boxes first. Only when they overlap does the expensive test at polygon level follow.
- AR placement: When you place a machine in augmented reality, the bounding box shows the footprint. Planners see immediately whether the plant fits through the door and into the hall.
- Dimensions and camera control: Viewers derive the length, width and height from the box, set the start camera to match and center the model.
Frequently Asked Questions (FAQ)
Does the bounding box match the real machine dimensions?
Only when the model has the correct scale and contains no auxiliary geometry. Protruding cables or forgotten components make the box larger.
When is an AABB sufficient, and when do you need an OBB?
For culling and selection, an AABB is usually sufficient. For accurate collisions of rotated or elongated components, an OBB is better.
