Instance Method

updateFromPlaneGeometry:

Reshapes the SceneKit geometry to match the specified plane mesh.

Declaration

- (void)updateFromPlaneGeometry:(ARPlaneGeometry *)planeGeometry;

Parameters

plane

A coarse mesh representation of a detected plane's estimated shape.

Discussion

To update a SceneKit model of a plane actively tracked in an AR session, call this method in your ARSCNViewDelegate object’s renderer:didUpdateNode:forAnchor: callback, passing the geometry property from the ARPlaneAnchor object that callback provides.