API reference

MeshSimplification Struct

A struct that describes how a mesh should be simplified.

Fields

flagLength : float
The minimum length in meters that an edge should have for it to be marked as diffracting.
Signature
float Meta.XR.Acoustics.MeshSimplification.flagLength
flags : MeshFlags
The size of this structure. You must set this equal to sizeof(ovrAudioMeshSimplification) This will ensure version compatibility.
Signature
MeshFlags Meta.XR.Acoustics.MeshSimplification.flags
maxError : float
The local unit scale factor for the mesh (the factor that converts from mesh-local coordinates to coordinates in meters). The other length quantities in this struct are converted to mesh-local coordinates using this value.
Signature
float Meta.XR.Acoustics.MeshSimplification.maxError
minDiffractionEdgeAngle : float
The maximum allowed error due to simplification, expressed as a distance in meters.
Signature
float Meta.XR.Acoustics.MeshSimplification.minDiffractionEdgeAngle
minDiffractionEdgeLength : float
The minimum angle (degrees) that there must be between two adjacent face normals for their edge to be marked as diffracting.
Signature
float Meta.XR.Acoustics.MeshSimplification.minDiffractionEdgeLength
thisSize : UIntPtr
Signature
UIntPtr Meta.XR.Acoustics.MeshSimplification.thisSize
threadCount : UIntPtr
The maximum distance in meters that a diffraction flag extends out from the edge.
Signature
UIntPtr Meta.XR.Acoustics.MeshSimplification.threadCount
unitScale : float
The mesh flags that describe how the mesh should be rendered.
Signature
float Meta.XR.Acoustics.MeshSimplification.unitScale