interface IARMesh (Niantic.ARDK.AR.Mesh.IARMesh)
Overview
Represents an updating dense mesh of the environment, split into “blocks.” Blocks are updated as new areas are scanned and/or ARDK refines its understanding of already scanned areas. More…
interface IARMesh { // properties IReadOnlyDictionary<Vector3Int, MeshBlock> Blocks; int MeshBlockCount; float MeshBlockSize; int MeshFaceCount; int MeshVersion; int MeshVertexCount; // events event MeshBlocksCleared(); event MeshBlocksUpdated(); }; // direct descendants class FileARMesh;
Detailed Documentation
Represents an updating dense mesh of the environment, split into “blocks.” Blocks are updated as new areas are scanned and/or ARDK refines its understanding of already scanned areas.
Properties
IReadOnlyDictionary<Vector3Int, MeshBlock> Blocks
The collection of blocks that make up the mesh. Each block is of equal size and has self-contained arrays of vertices and faces (triangles).
int MeshBlockCount
Number of blocks in the last parsed mesh. Each block is represented by a separate GameObject, which is an instance of _meshPrefab.
float MeshBlockSize
Size of a mesh block in meters in the last parsed mesh.
int MeshFaceCount
Number of faces (polygons) in the last parsed mesh.
int MeshVersion
Version of the last parsed mesh.
int MeshVertexCount
Number of vertices in the most recently parsed mesh.
Events
event MeshBlocksCleared()
Informs subscribers whenever the mesh has been cleared, such as when the session is re-run with the option to clear the mesh.
event MeshBlocksUpdated()
Informs subscribers whenever mesh blocks have been added, removed, and/or their geometry has been updated.