Contents

ARSCNFaceGeometry

A SceneKit representation of face topology for use with face information that an AR session provides.

Declaration

class ARSCNFaceGeometry

Overview

This class is a subclass of SCNGeometry that wraps the mesh data provided by the ARFaceGeometry class. You can use ARSCNFaceGeometry to quickly and easily visualize face topology and facial expressions provided by ARKit in a SceneKit view.

Face mesh topology is constant for the lifetime of an ARSCNFaceGeometry object. That is, the geometry’s single SCNGeometryElement object always describes the same arrangement of vertices, and the texcoord geometry source always maps the same vertices to the same texture coordinates.

When you modify the geometry with the update(from:) method, only the contents of the vertex geometry source change, indicating the difference in vertex positions as ARKit adapts the mesh to the shape and expression of the user’s face.

Topics

Creating a Geometry

Updating the Geometry

Initializers

See Also

Face Data