MeshAnchor

Represents a mesh anchor with a unique identifier, position, rotation, and additional mesh-specific data.

This class is used to define an anchor in 3D space that includes its position, orientation, and detailed information about the mesh it represents. A mesh anchor is particularly useful in scenarios where a physical object or surface is scanned, and its geometry, along with associated metadata, needs to be processed or visualized within the application.

Properties

Link copied to clipboard
val anchorUUID: UUID

The UUID ensures that each anchor is uniquely identifiable within the application.

Link copied to clipboard

The size of the axis-aligned bounding box (AABB) of the anchor.

Link copied to clipboard
val indices: List<Int>

A list of indices that define the connectivity of the vertices in the mesh.

Link copied to clipboard

The semantic data associated with the mesh anchor.

Link copied to clipboard

The transform of the anchor, combining position, rotation, and scale. The default scale is always Vector3(1f, 1f, 1f).

Link copied to clipboard
val vertices: List<Vector3>

A list of vertices that define the geometry of the mesh anchor.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String