I did not realise the DxfDecoder is fully 3d.
But during writing of the C and C++ code i used all x, y, z parameters. We are lucky that this is done. I did not test this
3d function before. But it works !
Trough the 3d, we can do 3d lead in's, and try to cut little holes with a spiral 3d technique. And for milling it's also handy to
use 3d g-code.
At the moment the basic line, circle, arc are working. Polyline is almost done. Spline is difficult.
If you draw the cad drawing like the preview. It works quite nice for a free program.
I have to do more testing, etc. But everytime i see a bug. I update the code.
Example of 3d cad drawing. The blue lines are the 3d traject.
Look at the option for special lead in, in the hole, blue line...
I have the idea to define the dxf drawing with colors. I look at this option coming day's.
Red = outside offset
Yellow = inside offset
Cyan = slower :woohoo:
The linuxcnc output :
The dxfdecoder screen, not finished. Look at the dxf lines.... pff... more then 197000 lines are processed in about 5 seconds.
Todo : sorting the g-code lines into closed contours, this is quite difficult and can take a lot of time. It looks like make a formule
for solving a colered cubic game.
Todo : add logic about G41 and G42, i think based on the used cad colors. This is user friendly, and will simplify coding a lot.
To run the program, follow this download link, it stay's here one week :
we.tl/t-xhbTIJqyYM
unzip and type in terminal : ./untitled