ColorableAlgorithm

voxelizer/algorithms# ColorableAlgorithm

Class for sampling voxel data.

Constructor

(abstract) new ColorableAlgorithm(optionsopt)

Create new colorable algorithm.
Source:
Parameters:
Name Type Attributes Default Description
options Object <optional>
{} Algorithm options.

Extends

Members

defaults :AlgorithmOptions

The default algorithm options.
Overrides:
Source:
Type:

options :Object

Default algorithm options merged with user specific options.
Overrides:
Source:
See:
  • defaults for options.
Type:
  • Object

Methods

sample(object, resolution) → {Volume}

Samples a mesh based 3D object into voxels.
Overrides:
Source:
Parameters:
Name Type Description
object Mesh | Object3D mesh based 3D object.
resolution number resolution of voxelization.
Returns:
Type:
Volume
Volume data representation of the mesh.