supermerill / SuperSlicer

G-code generator for 3D printers (Prusa, Voron, Creality, etc.)
4.12k stars 519 forks source link

Milling feature: separate G-code #1744

Open janrinze opened 2 years ago

janrinze commented 2 years ago

Pleasantly surprised to see the milling option!

I use a CNC router and wondered if it is possible to generate only the milling G-code.

As a next step i wonder if it would be possible in future to generate G-code for milling the 3D object from stock? It sort-of would be the inverse space of what is printed. Most desktop cnc routers have limited power so 'slicing' would definitely be the way to go.

I'm willing to test it on my router (will be using Styrofoam for testing)

supermerill commented 2 years ago

Hi! happy to see someone else to test it. Be careful, as it seems that some issues are here, and milling mistake are more dangerous!

1426

1329

I didn't worked on these yet, but now that I have a tester, I will. I'll post here when work is done.

janrinze commented 2 years ago

Currently the milling instructions in the G-code are per layer. This means that it can mill inside an object. However when milling is done separately this is not possible. Instead all milling should be done top down. I am looking into writing a small python script to extract milling parts from the G-code and reorder them top to bottom. If I can filter what is accessible from the bottom of an object i might split the G-code in Topview and Bottomview. That way I can turn over the object and mill from the bottom. more later..

supermerill commented 2 years ago

What you want is a "milling" type of machine, like the "sla" mode. Not for now, and I have the sls mode to do first (but they are very similar)

supermerill commented 2 years ago

When new printers type can be added, and a mill printer is created, then I can think of adding this.