Skip to main content

Interface: WorldMesh

Defined in: packages/webxr-environment/src/world-sensing.ts:117

Scanned geometry: furniture, walls, whatever the room-scan produced.

vertices and indices are the HOST's buffers, handed over by reference. They are not copied, because a room mesh is hundreds of kilobytes and copying it every frame to satisfy a tidiness rule would be the wrong trade. Treat them as read-only: an adapter may hand back the same buffer next frame with new contents.

Properties

PropertyModifierTypeDescriptionDefined in
changedAt?readonlynumber-packages/webxr-environment/src/world-sensing.ts:125
extentsreadonlyreadonly [number, number, number] | nullAxis-aligned size in the mesh's own space, metres, when known.packages/webxr-environment/src/world-sensing.ts:121
idreadonlystring-packages/webxr-environment/src/world-sensing.ts:118
indices?readonlyUint32Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike>-packages/webxr-environment/src/world-sensing.ts:124
labelreadonlystring | null-packages/webxr-environment/src/world-sensing.ts:122
posereadonlyWorldPose-packages/webxr-environment/src/world-sensing.ts:119
vertices?readonlyFloat32Array<ArrayBufferLike>-packages/webxr-environment/src/world-sensing.ts:123