Constructor
new OctreeLoader()
Create a OctreeLoader.
- Mixes In:
- Source:
Methods
getLOD()
Get the Level Of Detail (LOD) value.
- Mixes In:
- Source:
parse(matrix) → {Promise.<PointOctree>}
Parses a PointOctree.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
matrix |
Array.<Array.<Array.<number>>>
|
The matrix to be transformed. |
Returns:
- Type:
-
Promise.<PointOctree>
Promise with an octree filled with voxel data.
setLOD(maxPointsopt, maxDepthopt)
Set the vanted level of detail (LOD).
- Mixes In:
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
maxPoints |
number
|
<optional> |
1 | Number of distinct points per octant in octree before it splits up. |
maxDepth |
number
|
<optional> |
8 | The maximum octree depth level, starting at 0. |