Delete all holes.
Is there any equivalent of this command (brep or mesh) among all GH plugins?
There is Untrim in Gh1 but it acts on all edges at once and I am interested in holes only, keeping the faces trimmed.
Delete all holes.
Is there any equivalent of this command (brep or mesh) among all GH plugins?
There is Untrim in Gh1 but it acts on all edges at once and I am interested in holes only, keeping the faces trimmed.
I have not tested this thoroughly but it seems you can reference a brep with holes, explode it and untrim each surface, then join again. In my test, the resulting list shows a closed brep and three surfaces which could be filtered to extract only closed breps.
I have considered that move, but it generates additional objects. No problem, off course, to filter it but I am talking about (possibly) hundred(s) breps at once. This would be slow and tedious to manage.
What are you going to do with these hundreds of objects?
It’s a complex 3d scene that needs to be simplified.
There is a risk of using untrim globally as you can loose geometry that is essential for shape (and I’m not talking about flat surfaces):
You could offset the geometry so far that the slots disappear but that does not work with large holes. Then offset back to the ‘sheet thickness’… I’m using this to get rid of small details in meshes.
II can give it a try.
Thanks for tip.
could you attach the code internalize
here i cull out the hole brep and them used create solid (parakeet)
@Piotr
A quick test on the Rhinocommon method Brep.RemoveHoles(tol) seems to work. On simple geometry at least.
This looks promising. I will surely test it on a larger and more complex objects and will let you know.
@Piotr
if (Object != justOneLongHoleObject): B.RemoveHoles()