# threejs-octree

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/your-username/your-repo/blob/main/LICENSE)[![npm version](https://badge.fury.io/js/threejs-octree.svg)](https://badge.fury.io/js/threejs-octree) Follow me on Twitter:[![Eriks Twitter][1.1]][1]

[1.1]: https://i.imgur.com/tXSoThF.png

[1]: https://www.twitter.com/ErikSombroek


## Description

threejs-octree is a library for working with octrees in Three.js. It provides efficient spatial partitioning for optimizing scene rendering and collision detection.

The library is a modified version of the Babylon.js implementation of octrees.

## Demo

Check out the [live demo](https://eriksom.github.io/threejs-octree/dist/example/) to see threejs-octree in action.

## Features

- Efficient spatial partitioning using octrees
- Automatic folding and collapsing of ndoes
- Intersection queries for collision detection
- Customizable octree configuration and parameters
