RaycastAlgorithm

voxelizer/algorithms# RaycastAlgorithm

Class representing a raycasting based voxelization algorithm.

Constructor

new RaycastAlgorithm(optionsopt)

Creates a new RaycastAlgorithm.
Source:
Parameters:
Name Type Attributes Default Description
options RaycastAlgorithmOptions <optional>
{} Algorithm options.

Extends

Members

defaults :ColorableAlgorithmOptions

The default options for this colorable algorithm.
Overrides:
Source:
Type:

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.