A SceneKit representation of face topology for use with face information provided by an AR session.
- iOS 11.0+
This class is a subclass of
SCNGeometry that wraps the mesh data provided by the
ARFace class. You can use
ARSCNFace 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
ARSCNFace object. That is, the geometry's single
SCNGeometry 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.