Skip to main content
API Reference NianticSpatial.NSDK.AR.Meshing

NsdkMeshingExtension

↳ extends UnityEngine.MonoBehaviour

Declaration

public class NsdkMeshingExtension : MonoBehaviour

Summary

This component allows configuration of the additional functionality available in NSDK's implementation of XRMeshingSubsystem.


Properties

NameTypeSummary
AllowListList<SceneSegmentationChannel>
The list of channels included in the mesh. Both the IsMeshFilteringEnabled and
IsFilteringAllowListEnabled values must be true in order for the allow list to have an effect.
BlockListList<SceneSegmentationChannel>
The list of names of channels excluded from the mesh. Both the IsMeshFilteringEnabled and
IsFilteringBlockListEnabled values must be true in order for the block list to have an effect.
EnableDistanceBasedVolumetricCleanupbool
Get or set whether the volumetric representation will be cleaned up once it moves outside the region
where new mesh is currently being generated. This saves memory and smooths latency.
EnableLevelsOfDetailbool
-
EnableMeshDecimationbool
Get or set whether excess triangles will be removed from the mesh.
FuseKeyframesOnlybool
Get or set whether only depth keyframes will be fused into the mesh.
IsFilteringAllowListEnabledbool
Get or set whether to use the AllowList to determine which channels are included in the mesh.
This property must be used in conjunction with the IsMeshFilteringEnabled property.
IsFilteringBlockListEnabledbool
Get or set whether to use the BlockList to determine which channels are included in the mesh.
This property must be used in conjunction with the IsMeshFilteringEnabled property.
IsMeshFilteringEnabledbool
Get or set whether filtering to select which semantic segmentation channels are included in the mesh
is currently enabled.
LevelsOfDetailint
-
MaximumIntegrationDistancefloat
Get or set the maximum distance (in m) from the camera at which that the meshing system will
integrate depth samples into the 3D scene representation.
MeshBlockSizefloat
Get or set the size (in m) of the Mesh Blocks used for generating the Mesh Filter and Mesh Collider.
This value will be automatically rounded to be a multiple of the voxel size.
MeshCullingDistancefloat
Get or set the distance (in m) from the camera at which Mesh Blocks will be removed from the scene. A value of 0 indicates that Mesh Blocks will not be removed.
TargetFrameRateint
Get or set the frame rate that meshing will aim to run at.
VoxelSizefloat
Get or set the size (in m) of individual voxel elements in the scene representation.
Setting this to higher values will reduce memory usage but reduce the precision of the surface.

Methods

NameTypeSummary
Configurevoid
-
Updatevoid
-