File: Box3Helper.md | Updated: 11/15/2025
A helper object to visualize an instance of Box3.
const box = new THREE.Box3();
box.setFromCenterAndSize( new THREE.Vector3( 1, 1, 1 ), new THREE.Vector3( 2, 1, 3 ) );
const helper = new THREE.Box3Helper( box, 0xffff00 );
scene.add( helper )
Constructs a new box3 helper.
box | The box to visualize.
---|---
color | The box's color. Default is 0xffff00.
The box being visualized.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.