Initializer

init(scnGeometry:)

Creates a mesh from the specified SceneKit geometry.

Declaration

convenience init(scnGeometry: SCNGeometry)

Parameters

geometry

A SceneKit geometry object.

Return Value

A new mesh object.

Discussion

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

See Also

Importing Mesh Objects from SceneKit

init(scnGeometry: SCNGeometry, bufferAllocator: MDLMeshBufferAllocator?)

Creates a mesh from the specified SceneKit geometry, using the specified allocator.