API reference
API reference
Select your platform
No SDKs available
No versions available

SpaceTriangleMesh

SpaceTriangleMesh

data class SpaceTriangleMesh(val vertices: Array<Vector3>, val indices: IntArray)
Represents a triangle mesh associated with an anchor.
Contains the vertex positions and triangle indices that define the mesh geometry. This information is available for anchors with the SpaceComponentType.TriangleMesh component.

Constructors

NameSummary
SpaceTriangleMesh
constructor(vertices: Array<Vector3>, indices: IntArray)

Properties

NameSummary
indices
val indices: IntArray

Integer array defining the triangle indices (groups of 3 indices form triangles)
vertices
val vertices: Array<Vector3>

Array of 3D positions defining the mesh vertices
Did you find this page helpful?