Skip to main content
API Reference SwiftyNsdk NsdkMeshingSession

Configuration

The type of configuration used by this session

Declaration

struct Configuration

Constructors

init(frameRate: Int = 0, fuseKeyframesOnly: Bool = false, maximumIntegrationDistance: Float = 0, voxelSize: Float = 0, enableDistanceBasedVolumetricCleanup: Bool = false, numVoxelLevels: Int = 0, meshBlockSize: Float = 0, meshCullingDistance: Float = 0, enableMeshDecimation: Bool = true, filterMeshWithSemantics: Bool = false, enableAllowlist: Bool = false, packedAllowlist: UInt32 = 0, enableBlocklist: Bool = false, packedBlocklist: UInt32 = 0)

Properties

NameTypeSummary
var enableAllowlistBool
If true, packedAllowlist will be used to filter the mesh.
Requires filterMeshWithSemantics to be true.
var enableBlocklistBool
If true, packedBlocklist will be used to filter the mesh.
Requires filterMeshWithSemantics to be true.
var enableDistanceBasedVolumetricCleanupBool
If true, the feature will clean up internal data that is far away from the user
to improve performance. This will not remove previously-generated mesh.
var enableMeshDecimationBool
If true, mesh surfaces will be simplified to save compute and memory
var filterMeshWithSemanticsBool
If true, the mesh will be filtered according to the packedAllowlist and/or packedBlocklist.
var frameRateInt
Target frame rate for the meshing feature
var fuseKeyframesOnlyBool
If true, only high-quality frames will be integrated into the mesh,
but updates will be less frequent
var maximumIntegrationDistanceFloat
The maximum distance from the device sensor to incorporate depth data, in meters
var meshBlockSizeFloat
The size of the mesh blocks, in meters
var meshCullingDistanceFloat
Mesh culling distance, in meters
Setting meshCullingDistance less than maximumIntegrationDistance may lead
to unexpected behaviour.
var numVoxelLevelsInt
The levels of detail in the voxel grid
By default, this is 0.
Setting this to a value greater than 1 will allow lower detail levels to be used
in areas with less thorough coverage.
var packedAllowlistUInt32
A bitmask of semantic classes to include in the mesh
var packedBlocklistUInt32
A bitmask of semantic classes to exclude from the mesh
var voxelSizeFloat
Voxel size for the meshing engine, in meters