I’ve been able to create a mesh and convert to SCNGeometry for rendering in SceneKit. But I haven’t been able to get crease support in my meshes or geometries.
I just wanted to verify that I’m taking the correct steps to add crease support for my mesh.
- Create MDLSubmeshTopology
- For the new topology object assign MDLMeshBuffers to edgeCreaseIndices, edgeCreases and Int to edgeCreaseCount properties.
- Create MDLSubmesh with topology object.
I’m not looking for specific solutions, just a general idea of how one would go about adding crease support to a mesh. Anyone with experience on this would be great.