Box3Helper
A helper class for visualizing Box3 using
Line geometry.
Box3Helper creates a wireframe representation of a Box3 (axis-aligned bounding box) using line
segments, useful for debugging, visualization, and spatial
reference.
- Shows Box3 min/max boundaries as wireframe
- Changeable color for the wireframe
- Automatic geometry generation from Box3
- Updates when Box3 changes
Methods
Box3Helper()
Default constructor - creates helper for empty box
Box3Helper(const Box3& box, Color color)
Constructor with Box3 and color
| box | Box3 to visualize | empty box |
| color | Color of wireframe (RGBA) | color(0xFFFF00FF) yellow |
virtual Object3D* clone(bool recursive = true) const override
Creates a copy of this object
| recursive | Whether to clone children |
virtual void copy(const Object3D& object, bool recursive = true) override
Copies properties from another object
| object | Source | |
| recursive | Copy children too |
void setBox(const Box3& box)
Sets the Box3 to visualize
| box | Box3 to visualize |
const Box3& getBox() const
Gets the current Box3 being visualized
void setColor(Color color)
Sets the color of the wireframe
| color | Color for wireframe (RGBA) |
Color getColor() const
Gets the current wireframe color
void update()
Updates the wireframe geometry to match current Box3
void updateMatrixWorld(bool force = false)
Updates the matrix world and regenerates geometry
| force | Force update even if not needed |
Properties
| box | Box3 | Box3 being visualized |
| color | Color | Color of wireframe (RGBA) |
| isBox3Helper | bool | Read-only tag |