PlaneAnchor

Represents a plane anchor in 3D space with a unique identifier, transform properties, and additional mesh-related data.

The PlaneAnchor class is designed to encapsulate the representation of a detected plane or surface in 3D space. It includes positional and rotational information, as well as detailed mesh geometry and metadata. This makes it particularly useful for applications involving spatial mapping, object tracking, or augmented reality scenarios where precise plane detection and visualization are required.

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 in 2D space.

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 orientation of the plane anchor.

Link copied to clipboard

The semantic data associated with the plane 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 plane 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