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 }
Property | Type | Description |
---|---|---|
id | String | An 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. |
geometry | GeometryObject | An object containing raw mesh geometry data. Attributes contain position and color attributes. |
GeometryObject
GeometryObject
is an object with the following properties:
Property | Type | Description |
---|---|---|
index | String | An 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}