I'm loading an OBJ model into a MDLMesh using MDLAsset. I'm trying to access the raw vertex data, indices, and connectivity for the triangles. So far I've been able to get the vertices from the MDLMesh (using mdlMesh.vertexAttributeData) and the indices (from the MDLSubmeshes). But I haven't been able to figure out how to access connectivity - i.e., how the triangles connect to each other. Is that information stored anywhere in the mesh?
Accessing triangle connectivity from MDLMesh
Add a Comment