I am attempting to call RemoveHoles on a brep geometry object from python using the Rhino library. When I call RemoveHoles with just the tolerance argument, it creates a brep that is undesirable as it removes all inner loops of all faces. I want to preserve inner loops of faces which are adjacent to other faces. So then I went to calling RemoveHoles with two arguments.
The first argument is supposed to be an IEnumerable. A cast from a list of integers fails. When constructing ComponentIndexes, I first attempted to call ComponentIndex(5, index) using the type for BrepLoops according to documentation. This throws an error which says the type should be 0. When using the type 0 instead, the call return None. (no error) All loop indices supplied are of type inner as well.
Anyone know what I’m doing wrong or if this is a bug?