Capítulo 325 de 859
A helper for visualizing an Octree.
const helper = new OctreeHelper( octree );
scene.add( helper );
Constructor
| Signature |
|---|
| `new OctreeHelper( octree : Octree, color : number |
Properties
| Property | Description |
|---|---|
| `.color : number | Color |
.octree : Octree | The octree to visualize. |
Methods
| Method | Description |
|---|---|
.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. |