Hello!
I mostly work with points and lines, but now I have a task with breps which would be much easier if I could work with surfaces instead.
The brep contains thousands of small surfaces (almost like a mesh) so if I explode it then it’s quite difficult to work with it.
This is why I would like to approximate the BREP with 1 - or a manageable small amount of - surface(s). I would like to offset it afterwards this is why I prefer a surface.
The end goal would be to separate the two “sides” of the brep, and have the sides as 1-1 surface. (unfortunatelly the small surfaces are totally randomly placed)
My method:
1.) Set ‘diagonal line’, find vector for projection
2.) Divide diagonal line, set perpendicular lines
3.) Project lines onto BREP and loft projected curves
Actually this works OK, but the result really depends on the division and the ends are wrinkled if the div. is too small. Also the top/bottom part is missing, too.
I only want to approximate the brep, but the goal is to fit the surface as closely as possible.
Of course I am open to any other solutions, too (I tried to do it with contour lines, too, but didn’t succeed).
Surface_offset test_1.gh (1.3 MB)
Thank you!
Zsolt