Class

ARSCNPlaneGeometry

A SceneKit representation of the 2D shape of a plane, for use with plane detection results in an AR session.

Declaration

@interface ARSCNPlaneGeometry : SCNGeometry

Overview

ARSCNPlaneGeometry is a subclass of SCNGeometry that wraps the mesh data provided by the ARPlaneGeometry class. You can use ARSCNPlaneGeometry 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 updateFromPlaneGeometry: method to incorporate those refinements into the plane's SceneKit representation.

Topics

Creating a Geometry

+ planeGeometryWithDevice:

Creates a SceneKit plane geometry for rendering with the specified Metal device object.

Updating the Geometry

- updateFromPlaneGeometry:

Reshapes the SceneKit geometry to match the specified plane mesh.

Relationships

Inherits From

See Also

Geometry

geometry

A coarse triangle mesh representing the general shape of the detected plane.

ARPlaneGeometry

A 3D mesh describing the shape of a detected plane in world-tracking AR sessions.