vanruesc/octree-helper


An octree visualization tool for three.js.

License: Zlib

Language: JavaScript

Keywords: geometry, helper, octree, octree-helper, threejs, visualization


Octree Helper

Build status npm version Peer dependencies

An octree visualization tool for three.js.

Demo · Documentation

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.

import { Scene } from "three";
import { Octree } from "sparse-octree";
import { OctreeHelper } from "octree-helper";

const scene = new Scene();
const octree = new Octree();
const octreeHelper = new OctreeHelper(octree);

// Render the helper.
scene.add(octreeHelper);

// Set a different octree.
octreeHelper.octree = otherOctree;

// Destroy the helper geometry and rebuild.
octreeHelper.update();

// Destroy the helper geometry.
octreeHelper.dispose();

Contributing

Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Project Statistics

Sourcerank 4
Repository Size 236 KB
Stars 4
Forks 0
Watchers 1
Open issues 0
Dependencies 25
Contributors 1
Tags 33
Created
Last updated
Last pushed

Top Contributors See all

Raoul v. R.

Packages Referencing this Repo

octree-helper
An octree visualization tool for three.js.
Latest release 1.0.0 - Updated - 4 stars

Recent Tags See all

v1.0.0 October 23, 2019
v0.24.0 September 30, 2019
v0.23.0 September 02, 2019
v0.22.0 August 09, 2019
v0.21.0 June 26, 2019
v0.20.0 June 01, 2019
v0.19.0 April 25, 2019
v0.18.0 March 29, 2019
v0.17.0 February 28, 2019
v0.16.0 February 01, 2019
v0.15.0 January 01, 2019
v0.14.1 December 01, 2018
v0.14.0 December 01, 2018
v0.13.0 October 31, 2018
v0.12.0 September 26, 2018

Something wrong with this page? Make a suggestion

Last synced: 2019-10-24 05:41:05 UTC

Login to resync this repository