Class MeshingSettings
Static class for managing setting for the Meshing feature.
Inherited Members
Namespace: UnityEngine.XR.MagicLeap.Meshing
Syntax
public static class MeshingSettings
Properties
batchSize
Setter for the meshing batch size.
Declaration
public static int batchSize { set; }
Property Value
Type | Description |
---|---|
Int32 |
density
Setter for the meshing density.
Declaration
public static float density { set; }
Property Value
Type | Description |
---|---|
Single |
meshingSettings
Setter for the Meshing settings.
Declaration
public static MLMeshingSettings meshingSettings { set; }
Property Value
Type | Description |
---|---|
MLMeshingSettings |
Methods
AcquireConfidence(MeshId, out Int32)
Acquire the confidence level of a given Mesh ID
Declaration
public static IntPtr AcquireConfidence(MeshId meshId, out int count)
Parameters
Type | Name | Description |
---|---|---|
MeshId | meshId | Given Mesh Identifier |
Int32 | count | Count |
Returns
Type | Description |
---|---|
IntPtr | Pointer to confidence struct |
ReleaseConfidence(MeshId)
Release a reference to the confidence struct we've acquired from AcquireConfidence
Declaration
public static void ReleaseConfidence(MeshId meshId)
Parameters
Type | Name | Description |
---|---|---|
MeshId | meshId | The Mesh ID |
SetBounds(Transform, Vector3)
Set a bounds on the meshing subsystem
Declaration
public static void SetBounds(Transform transform, Vector3 extents)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | Unity Transform indicating the centroid of the space |
Vector3 | extents | Bounding rectangle of the meshing space |
SetBounds(Vector3, Quaternion, Vector3)
Set the bounding area for the meshing subsystem.
Declaration
public static void SetBounds(Vector3 position, Quaternion rotation, Vector3 extents)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | Vector3 representing the center of the bounding rectangle. |
Quaternion | rotation | Quaternion representing the orientation of the bounding rectangle. |
Vector3 | extents | Vector3 representing the extents of the bounding rectangle. |