A SceneKit representation of the 2D shape of a plane, for use with plane detection results in an AR session.
- iOS 11.3+
ARSCNPlane is a subclass of
SCNGeometry that wraps the mesh data provided by the
ARPlane class. You can use
ARSCNPlane to visualize the plane shape estimates provided by ARKit in a SceneKit view.
As your AR session continues to run, ARKit provides refined estimates of a detected plane's 2D shape. Use the
update(from:) method to incorporate those refinements into the plane's SceneKit representation.