Initializer

init(scnGeometryElement:)

Creates a submesh from the specified SceneKit geometry element.

Declaration

convenience init(scnGeometryElement: SCNGeometryElement)

Parameters

geometryElement

A SceneKit geometry element.

Return Value

A new submesh object.

Discussion

Calling this method is equivalent to calling the init(scnGeometryElement:bufferAllocator:) method and passing nil for the bufferAllocator parameter, causing Model I/O to use an internal allocator object.

See Also

Importing Submesh Objects from SceneKit

init(scnGeometryElement: SCNGeometryElement, bufferAllocator: MDLMeshBufferAllocator?)

Creates a submesh from the specified SceneKit geometry element, using the specified allocator.