Home Reference Source
import {SparseVoxelOctree} from 'rabbit-hole'
public class | source

SparseVoxelOctree

Extends:

sparse-octree~Octree → SparseVoxelOctree

A sparse, cubic voxel octree.

Constructor Summary

Public Constructor
public

constructor(data: HermiteData, min: Vector3, size: Number)

Constructs a new voxel octree.

Member Summary

Public Members
public

The root octant.

public

The amount of voxels in this octree.

Public Constructors

public constructor(data: HermiteData, min: Vector3, size: Number) source

Constructs a new voxel octree.

Params:

NameTypeAttributeDescription
data HermiteData

A set of volume data.

min Vector3
  • optional

The lower bounds of this octree.

size Number
  • optional
  • default: 1

The size of this octree.

Public Members

public root: VoxelCell source

The root octant.

public voxelCount: Number source

The amount of voxels in this octree.