Octree Helper
An octree visualization tool for three.js.
Installation
This library requires the peer dependency three.
npm install three octree-helper
Requirements
This helper can visualize any octree that conforms to the following protocols:
Usage
The following example uses the sparse-octree module.
;;; const scene = ;const octree = ;const octreeHelper = octree; // Render the helper.scene; // Set a different octree.octreeHelperoctree = otherOctree; // Destroy the helper geometry and rebuild.octreeHelper; // Destroy the helper geometry.octreeHelper;
Contributing
Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.