Type Method

submeshWithSCNGeometryElement:

Creates a submesh from the specified SceneKit geometry element.

Declaration

+ (instancetype)submeshWithSCNGeometryElement:(SCNGeometryElement *)scnGeometryElement;

Parameters

geometryElement

A SceneKit geometry element.

Return Value

A new submesh object.

Discussion

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

+ submeshWithSCNGeometryElement:bufferAllocator:

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