Constructor
new BoxHelper( object : Object3D, color : number | Color | string )
Constructs a new box helper.
| object |
The 3D object to show the world-axis-aligned bounding box. |
| color |
The box's color. Default is |
Properties
Methods
.dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
.setFromObject( object : Object3D ) : BoxHelper
Updates the wireframe box for the passed object.
| object |
The 3D object to create the helper for. |
- Returns: A reference to this instance.
.update()
Updates the helper's geometry to match the dimensions of the object, including any children.