On this page←API Reference Return to API Reference index←packageSwiftyNsdk SwiftyNsdk←classMeshData MeshData Method toSCNGeometry toSCNGeometryCreates 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.
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:
SCNGeometryrepresenting the mesh.