Type Method

meshWithSCNGeometry:

Creates a mesh from the specified SceneKit geometry.

Declaration

+ (instancetype)meshWithSCNGeometry:(SCNGeometry *)scnGeometry;

Parameters

geometry

A SceneKit geometry object.

Return Value

A new mesh object.

Discussion

Calling this method is equivalent to calling the meshWithSCNGeometry: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

+ meshWithSCNGeometry:bufferAllocator:

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