Skip to main content
API Reference SwiftyNsdk

VoxelBuffer

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

Declaration

class VoxelBuffer

Properties

NameTypeSummary
var colorsUnsafeMutableBufferPointer<UInt8>
The colors of the voxels.
Array of 4 bytes per voxel.
- Attention: These pointers are valid as long as this class does not go out of scope.
var normalsUnsafeMutableBufferPointer<Float>
The normals of the voxels.
Array of 3 floats per voxel.
- Attention: These pointers are valid as long as this class does not go out of scope.
var positionsUnsafeMutableBufferPointer<Float>
The positions of the voxels.
Array of 3 floats per voxel.
- Attention: These pointers are valid as long as this class does not go out of scope.
var voxelSizeFloat
The size of the voxels.