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?
BrepFace.RemoveHoles removes all of the inner loops (e.g. holes) from a Brep face. The function returns the newly constructed Brep sans the face loops.
But what if I only want to delete a loop with a small edgelength like the Rhino _UntrimHoles command does.
It has an option MaximumEdgeLength with check the length of a hole edge and remove it when it is smaller than the given value. It should be nice that the Brep.RemoveHoles has an option with maximum edgelength to remove holes smaller than the given value.
An other way around may be is that I have the possibility to remove the (inner) loops (holes) I like.
Than I have the possibility to remove inner loops (holes) based on my own criteria.