Seems as if you've found several valid bugs! Congratulations.
The Z axis stuff was put in later. I tested it, but not particularly thoroughly, as my own use for it is 2D only. Sorry about that.
Can you please email me (eric AT zyxod DOT com) the DXF file(s) you're using, the command lines you're using, and the expected output, if it's not obviously wrong?
The first example it seems it's either using a -z of 5 for both "through" and "insert" -- is this correct?
Your 2nd example doesn't appear to have a valid command line, but that doesn't mean it's not a bug if it freezes. Seems it might need better value checks.
The F1F1 bug seems pretty glaring, I'll look at it.
Hopefully the "normal" gcode for your dxf file isn't 1000s of lines?
-- Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First: I am impressed by what does work, thanks for the time and effort!
Using a three layer dxf where layer '0' is the raw material, layer 'through' has 4 through holes and layer 'insert' has one circular pocket:
The following command line causes the application to run to termination but the output is not correct:
./codeg --in ~/Desktop/z_layers.dxf
--out z_layers.ngc --safe 0.11 \ --layer insert --tool 1 --feed 2.5 -d 0.2 -z 0.1\
--layer through --tool 2 --feed 2.6 -d 1.0 -z 5
(apparently only the z depth for the layer through is used)
The following command line results in the application hanging after the message "Chaining and rendering paths ..."
./codeg --in ~/Desktop/z_layers.dxf --out z_layers.ngc --safe 0.1 \ --tool insert 1 --feed insert 2.5 -d insert 0.2 -z insert 0.1\
--tool through 2 --feed through 2.6 -d through 1.0 -z through 5
Additionally:
every time the feed rate appears in the output it appears to be concatenated onto the previous feed rate... i.e.
F1
F1F1
F1F1F1
There is also a problem where the first G01 generated in the output has a feed rate of F0.0.
It also appears there might be an issue with the tool change code, but I don't know if it is related to the above issues or not.
Thanks for your time and effort.
If you need the dxf for the above issues,just let me know.
Regards,
Ken
Ken,
Seems as if you've found several valid bugs! Congratulations.
The Z axis stuff was put in later. I tested it, but not particularly thoroughly, as my own use for it is 2D only. Sorry about that.
Can you please email me (eric AT zyxod DOT com) the DXF file(s) you're using, the command lines you're using, and the expected output, if it's not obviously wrong?
The first example it seems it's either using a -z of 5 for both "through" and "insert" -- is this correct?
Your 2nd example doesn't appear to have a valid command line, but that doesn't mean it's not a bug if it freezes. Seems it might need better value checks.
The F1F1 bug seems pretty glaring, I'll look at it.
Hopefully the "normal" gcode for your dxf file isn't 1000s of lines?
-- Eric