Sudden CNC 3-axis milling Post

Let me introduce another one G-Code generator i wrote to work on my furniture projects. It was inspired by BarkBeetle, really powerful and impressive tool for CNC milling. But for my needs, it seemed not quite suitable, so I decided to write my own.
It’s not well documented, but it’s not so hard to figure it out how it works. I’ll try to make video explanation as soon as it gets interested for you =)
For now on it can make profiles, pockets, engravings, re-machining, drilling operations.
It’s using lots of 3rd party plugins, ma bad =)
I hope this will be useful for someone, feel free to comment and make suggestions for further development.

I’ve started YouTube playlist, that describes workflow. So, check it out =)

6 Likes

Cool project. How I can write a custom post-processor?

1 Like

It depends on what you need to implement. I did not provide this opportunity in advance, but it’s not impossible =)


There is a cluster, that contains all geometry: plunge, engage, main toolpath and retracting. All of them separately converted into g-code

You can make corrections to logic of this conversion, add more code blocks and implement macro programs if needed.

1 Like

Thank you for your reply. I will give-it a try this weekend.

Another question: How do you extract the curves of the interior and exterior contour of the parts? I do face dificulties in finding a working solution for this task.

Not quite consistent results, but acceptable, especially for my needs :sweat_smile:
inside1
It supports several layers of nesting and unite overlayed curves
I couldn’t explain you “logic” of implementation in two words - there was loads of iterations, tests and corrections =) I hope someone could implement this in more clean way


If you interested you can examine this block of code

Looks like your workflow it’s 2D only?

In my case I do need to extract 2D contours from 3D parts and mechanize that contours.

1 Like

Yep

I have the same orders sometimes, with 3D parts, but it’s not that often. I’ve started to make some definition with automatic feature detection specially for this cases, but it’s not already implemented =( Maybe you have some solution?

1 Like

I do made some experiments but unfortunately I wasn’t able to find a good working solution to extract the outlines of the 3D parts. At some point all the methods are failing in some way or other. There are a few threads in this forum discussing this things, but I just can’t find something to work in ANY situation. Simplest way would be to use Make2D, but this it is creating mesh lines instead of NURBS arcs and circles, so no good for me. Another method it is to project all the surfaces to a plane but also after that it is not working the BREP join component. Wombat components have a component called Brep Faces by Direction that can separate the Top, Bottom and the sides of a BREP, but unfortunately it is not enough to extract the contours as the 3D parts can have mitered or chamfered edges.

Sasquash also have a very useful component called Surface Border that can extract the Inside/Outside contours of any surface, but for now I don’t have a way to transform an entire BREP into a surface from the XY projection plane.

1 Like

Hi. One of the possible solutions to extract the outlines of the BREPs implies the use of meshing. Do you know any algorithm capable to transform the segmented arcs and circles back into NURBS arcs and circles?

Mesh outline_Simplify crv.gh (5.3 KB)

I’ve always seen Mastercam’s “feature based machining” (automatic feature detection) as a gimmick that’s never worked very well.

So, depending on what you mean by “automatic feature detection”, it might be a waste of time imo.

And most CAM’s I’ve ever used and evaluated, are still in the stone ages in terms of how 3-5 axes they really are. Not to mention the CNC machines them selves.

The worst part about Mastercam is their ‘unwillingness’ to improve their software based on customer requests.

CNC Software, now owned by Sandvik, and ModuleWorks etc, still controlling the industry – literally the experience is 3 steps forward 2 steps backwards over the last 15 years I’ve seen.

So, there’s definitely a huge hole / niche in the industry of CAM and CNC.