Skip to main content
API Reference SwiftyNsdk 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.
- Parameter material: Optional material to apply to the resulting geometry.
- Returns: SCNGeometry representing the mesh.


ON THIS PAGE