Untrim Hole in Grasshopper Python

Hello Everybody,

is there a way to create script in Python Grasshopper which would work same as ‘Untrim Hole’ command in Rhino? I have some trimmed surfaces with holes in it, if I use Untrim in grasshopper, it would untrim also surface edges.

Thank you for your advise!

Cheers.

@rajaa - can you help with this?

Hi @le1
There is a method in the “Brep” class that is called “RemoveHoles” and it should delete all the holes, or you can pass a list of the ones you’d like to be removed. The script looks like the following:
newBrep = inputBrep.RemoveHoles(tol)

Is that what you are after?

2 Likes