File: OctreeHelper.md | Updated: 11/15/2025
A helper for visualizing an Octree.
const helper = new OctreeHelper( octree );
scene.add( helper );
OctreeHelper is an addon, and must be imported explicitly, see Installation#Addons.
import { OctreeHelper } from 'three/addons/helpers/OctreeHelper.js';
Constructs a new Octree helper.
octree | The octree to visualize.
---|---
color | The helper's color. Default is 0xffff00.
The helper's color.
The octree to visualize.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Updates the helper. This method must be called whenever the Octree's structure is changed.