Skip to main content
←API Reference ←NSDK ←MeshData

toSCNGeometry

Creates a SceneKit geometry from this mesh chunk's vertex positions, normals and triangle indices.

Declaration​

func toSCNGeometry(material: SCNMaterial? = nil) -> SCNGeometry?

Summary​

Creates a SceneKit geometry from this mesh chunk's vertex positions, normals and triangle indices.

Returns​

SCNGeometry representing the mesh.

Parameters​

NameTypeSummary
materialSCNMaterial?
Optional material to apply to the resulting geometry.