Helper object to visualize a Box3.
const box = new v3d.Box3(); box.setFromCenterAndSize(new v3d.Vector3(1, 1, 1), new v3d.Vector3(2, 1, 3)); const helper = new v3d.Box3Helper(box, 0xffff00); scene.add(helper);
box — the Box3 to show.
color — (optional) the box's color. Default is 0xffff00.
Creates a new wireframe box that represents the passed Box3.
See the base LineSegments class for common properties.
The Box3 being visualized.
See the base LineSegments class for common methods.
This overrides the method in the base Object3D class so that it also updates the wireframe box to the extent of the .box property.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
For more info on how to obtain the source code of this module see this page.