Rhino has the _UntrimHoles command with an option to remove all holes below a MaximumEdgeLength. Its a nice command but works only when you select a face of a brep.
I like to have this option available for the whole brep and even better for all the breps with I select.
I made a python script with some rhinocommon commands to get all the innerloops of the brep with a MaximumEdgeLength. And show them on the screen. But what I like is to delete these inner loops from the brep. There is a methode to cull these loops. ( Brep.CullUnusedLoops) but the I have to set the m_loop_index to -1 how can I do this in the script?
BrepRemoveSmallHoles.py (2.3 KB)
I already made a script that did the job but isn’t error free and not very fast.
holesinbrep.3dm (350.4 KB)
holes1.py (4.7 KB)