How can I run the Mesh Tools “Check Objects” command from a python script? If too impractical, is there another way to get the same kind of diagnostic information about a mesh from scripting?
Here is a little context:
I’m doing Boolean operations between 2 watertight meshes that sometimes produce invalid meshes. I would like to run the Mesh Tools Check Objects command on the resulting mesh. In case of problem, I would undo the operation and try again with one of the mesh translated just a little (generally solving the triangle/triangle intersection problem).
I need a good mesh as it will be used for 3D printing later…
@dale Do you think this kind of information about meshes quality could be obtained more easily and robustly than by having to parse the clipboard from the Check command? Surely, there is underlying code called to get all this information? Is there a way to call it directly?
The mesh repair wizard (Panels > Mesh Repair) is written in RhinoCommon. So all this information is available in some form. For example, you can detect degenerate faces by calling MeshFaceList.GetZeroAreaFaces. Other calculations require some digging into the mesh. But all the information is there in RhinoCommon.