I wont be able to debug your code directly as serializing mesh files falls outside the scope of our support but based on the images The issue with your function appears to be related to how the vertex indices are written to the file in the face definitions. OBJ files are 1-indexed, meaning the vertex indices should start from 1, but your code might be incorrectly handling indices or the vertex order in a way that causes incorrect connections between vertices.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| XR_ML_world_mesh_detection timing issue | 14 | 213 | December 12, 2024 | |
| Processing the depth frames | 15 | 1189 | April 6, 2024 | |
| Export textured mesh or point cloud of the scanned sapce from MagicLeap2 | 6 | 406 | January 15, 2025 | |
| Meshing test error | 8 | 246 | August 14, 2024 | |
| Mesh generation does not work well | 10 | 465 | October 12, 2022 |