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

MRUKRoomMesh Class

Modifiers: final
Represents the complete mesh geometry of a room including vertex positions and face definitions.
MRUKRoomMesh is only available on a room with High Fidelity Scene (Scene V2). It provides a watertight representation of the room's walls, floor, ceiling, and windows. MRUK internally generates MRUKAnchor objects from the individual faces of this room mesh.
The positions array stores all vertex coordinates in the mesh, while the faces array contains semantic face definitions that reference these vertices through indices.

Signature

data class MRUKRoomMesh(val positions: FloatArray, val faces: Array<MRUKRoomFace>)

Constructors

MRUKRoomMesh ( positions , faces )
Signature
constructor(positions: FloatArray, faces: Array<MRUKRoomFace>)
Parameters
positions: FloatArray
  Array of vertex positions stored as x1, y1, z1, x2, y2, z2, ... in 3D space
faces: Array
  Array of face definitions that reference vertex positions and include semantic labels

Properties

faces : Array
[Get]
Signature
val faces: Array<MRUKRoomFace>
positions : FloatArray
[Get]
Signature
val positions: FloatArray
Did you find this page helpful?