WebXR Plane Detection Module: Difference between revisions
Jump to navigation
Jump to search
(Add boilerplate information) |
(Add short summary and WebIDL) |
||
Line 6: | Line 6: | ||
|group = CG | |group = CG | ||
}} | }} | ||
The WebXR Plane Detection module expands the WebXR Device API to enable detecting horizontal and vertical planes within an environment in an immersive-ar session. | |||
==WebIDL== | |||
<syntaxhighlight lang="idl"> | |||
enum XRPlaneOrientation { | |||
"horizontal", | |||
"vertical" | |||
}; | |||
interface XRPlane { | |||
[SameObject] readonly attribute XRSpace planeSpace; | |||
readonly attribute FrozenArray<DOMPointReadOnly> polygon; | |||
readonly attribute XRPlaneOrientation? orientation; | |||
readonly attribute DOMHighResTimeStamp lastChangedTime; | |||
}; | |||
interface XRPlaneSet { | |||
readonly setlike<XRPlane>; | |||
}; | |||
partial interface XRFrame { | |||
readonly attribute XRPlaneSet detectedPlanes; | |||
}; | |||
partial interface XRSession { | |||
Promise<undefined> initiateRoomCapture(); | |||
}; | |||
</syntaxhighlight> | |||
== External Links == | == External Links == |
Latest revision as of 01:04, 1 March 2023
Status | CG-REPORT |
---|---|
Last Updated | 29 June 2021 |
Editor(s) | Piotr Bialecki |
CG or WG? | CG |
The WebXR Plane Detection module expands the WebXR Device API to enable detecting horizontal and vertical planes within an environment in an immersive-ar session.
WebIDL[edit]
enum XRPlaneOrientation {
"horizontal",
"vertical"
};
interface XRPlane {
[SameObject] readonly attribute XRSpace planeSpace;
readonly attribute FrozenArray<DOMPointReadOnly> polygon;
readonly attribute XRPlaneOrientation? orientation;
readonly attribute DOMHighResTimeStamp lastChangedTime;
};
interface XRPlaneSet {
readonly setlike<XRPlane>;
};
partial interface XRFrame {
readonly attribute XRPlaneSet detectedPlanes;
};
partial interface XRSession {
Promise<undefined> initiateRoomCapture();
};