Import
OctreeHelper is an addon, and must be imported explicitly, see Installation#Addons.
import { OctreeHelper } from 'three/addons/helpers/OctreeHelper.js';
Constructor
new OctreeHelper( octree : Octree, color : number | Color | string )
Constructs a new Octree helper.
| octree |
The octree to visualize. |
| color |
The helper'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.
.update()
Updates the helper. This method must be called whenever the Octree's structure is changed.