init(device:)
Creates a SceneKit face geometry for rendering with the specified Metal device object.
Declaration
convenience init?(device: any MTLDevice)Parameters
- device:
The Metal device to use for rendering the geometry.
Return Value
A new SceneKit face geometry, or nil if the Metal device is unavailable or ARKit face tracking is not supported on the current device.
Discussion
A newly created ARSCNFaceGeometry instance represents a neutral, generic face; use the update(from:) method to deform the geometry to match a specific facial expression or face shape.
The geometry contains a single geometry element; as such, assigning more than one material has no visible effect (see the inherited doc://com.apple.documentation/documentation/scenekit/scngeometry/materials property).
Calling this initializer is equivalent to calling the init(device:fillMesh:) initializer and passing false for the fillMesh parameter.