Zum Hauptinhalt springen

meshfound

reality.meshfound

Description

This event is emitted when a mesh is first found either after start or after a recenter().

Event Properties

reality.meshfound.data : { id, position, rotation, geometry }

PropertyTypeDescription
idStringAn id for this mesh that is stable within a session.
position{x, y, z}The 3d position of the located Project Location.
rotation{w, x, y, z}The 3d local orientation (quaternion) of the located Project Location.
geometryGeometryObjectAn object containing raw mesh geometry data. Attributes contain position and color attributes.

GeometryObject

GeometryObject is an object with the following properties:

PropertyTypeDescription
indexStringAn id for this mesh that is stable within a session.
attributes[PositionAttributeObject, ColorAttributeObject]The raw mesh geometry data.

PositionAttributeObject

{name: 'position', array: Float32Array(), itemSize: 3}

ColorAttributeObject

{name: 'color', array: Float32Array(), itemSize: 3}