Hi all. I do need to extract the external and internal contours from some BREPs for CNC mechanization and unfortunately I can’t find a viable way to do so. I can’t find a way to merge or “solder” all the faces together so I can easily extract the contours of the shapes. Any help will be appreciated. Thank you.
Yes I know, because they are BREPS projected on the XY plane. I just need the contours and literally nothing works properly in this situation, unfortunately.
I do attach the original BREPs, so maybe can find a way to extract the contours from the original BREPs: test.3dm (185.5 KB)
Thank you for the definition. Much better but still not working with mitered edges. Please find a new file with some mitered edges that are giving some weird results.
P.S. For this I wanted to project all the surfaces in one plane, because then I do have the guarantee that I will have the desired contours. The only drawback for that approach are the degenerated surfaces.
I still don’t understand if you want those chamfers to show up of not.
I’ve added a test for the direction of the surface, it removes all non-vertical surfaces.
Maybe you can use this the other way around, keep only non-vertical faces and project their edges…
I need something that works with any shape you can imagine projecting the pass-throug contour from top to bottom view of the parts.
Personally I tried a lot of strategies but literally nothing seems to work in this situation. Maybe somebody with programming skills can write a script or component to do this task.
My personal preference it is to “Squash” all the faces projected on the XY plane because this way I am 100% that I can extract the desired edges but I am stuck to the merging all the resulting faces together phase, because looks like there it is no way to join all the resulting faces together.
@Cumberland
Ok, I have almost run out of ideas (I have been sick all day. Thus the sporadic posts) Here is my last shot. Looking at your parts it seems that I got the desired result.
Brep to Meshshadow to Boundrysurface
I also tried this variant, the drawback it is that it not producing accurate arcs and circles. All of them are converted to polyline segments, not a desirable result, unless I can find a way to convert this segments into arcs and circles.