Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
alphadl 
posted an update 1 day ago
Post
5,375
There are 682 triangles in both versions of this avocado. Why does a strip of the cut surface disappear on the left?

I flipped 88 triangles on Microsoft's Avocado sample and turned on back-face culling. The triangles were still there, facing the wrong way. Correcting their winding took the number of conflicting edges from 29 to 0. For this test, writing just the corrected indices back into the GLB reproduced the original file byte for byte, textures included.

This is one of the examples in Mesh Repair MCP, an open-source toolkit I built for inspecting and repairing meshes with an AI agent. It runs locally. An agent can inspect a defect, try an edit on a copy, and compare the result with the source in Blender. The README includes the meshes and commands for several repairs.

https://github.com/alphadl/mesh-repair-mcp

If you work on image-to-3D or text-to-3D, what do you still fix by hand after export? I'd love a small mesh that shows the problem, especially if you can point out one detail the repair needs to preserve.

Does the winding check run on the mesh as stored, or after instance transforms? A mirrored instance seems like a useful edge case here, since the source mesh itself can be fine.

·

Great point! In this example, the winding check operates on the mesh as stored, before instance transforms. A mirrored instance with a negative-determinant transform is indeed a different case: the source mesh can be perfectly valid while its transformed orientation is reversed. This would be a great regression test for instance-aware diagnostics without incorrectly modifying the shared source geometry. Thanks for bringing it up!