Skip to main content
←API Reference ←com.nianticspatial.nsdk.scanning

VoxelBuffer

A read-only container for the voxel buffer information generated during scanning.

Declaration​

data class VoxelBuffer

Constructors​

constructor(positions: FloatArray, colors: ByteArray, normals: FloatArray, voxelSize: Float)

Parameters​

NameTypeSummary
positionsFloatArray
-
colorsByteArray
-
normalsFloatArray
-
voxelSizeFloat
-

Properties​

NameTypeSummary
colorsByteArray
The colors of the voxels. Array of 4 bytes per voxel.
normalsFloatArray
The normals of the voxels. Array of 3 floats per voxel.
positionsFloatArray
The positions of the voxels. Array of 3 floats per voxel.
voxelSizeFloat
The size of voxels.