C Specification
The xrBeginPlaneDetectionEXT function is defined as:
// Provided by XR_EXT_plane_detection
XrResult xrBeginPlaneDetectionEXT(
XrPlaneDetectorEXT planeDetector,
const XrPlaneDetectorBeginInfoEXT* beginInfo);
Parameters
Description
The xrBeginPlaneDetectionEXT function begins the detection of planes in the scene. Detecting planes in a scene is an asynchronous operation. xrGetPlaneDetectionStateEXT can be used to determine if the query has finished. Once it has finished the results may be retrieved via xrGetPlaneDetectionsEXT. If a detection has already been started on a plane detector handle, calling xrBeginPlaneDetectionEXT again on the same handle will cancel the operation in progress and start a new detection with the new filter parameters.
The bounding volume is resolved and fixed relative to LOCAL space at the
time of the call to xrBeginPlaneDetectionEXT using
XrPlaneDetectorBeginInfoEXT::baseSpace
,
XrPlaneDetectorBeginInfoEXT::time
,
XrPlaneDetectorBeginInfoEXT::boundingBoxPose
and
XrPlaneDetectorBeginInfoEXT::boundingBoxExtent
.
The runtime must resolve the location defined by
XrPlaneDetectorBeginInfoEXT::baseSpace
at the time of the call.
The XrPlaneDetectorBeginInfoEXT::boundingBoxPose
is the pose of
the center of the box defined by
XrPlaneDetectorBeginInfoEXT::boundingBoxExtent
.
The runtime must return XR_ERROR_SPACE_NOT_LOCATABLE_EXT
if the
XrPlaneDetectorBeginInfoEXT::baseSpace
is not locatable at the
time of the call.
See Also
Document Notes
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright 2014-2024, The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.