LaserWeb / deprecated-LaserWeb3

Open Source Laser Cutter / Engraver software. Supports gcode, svg, dxf, stl, png, jpg, bmp
265 stars 68 forks source link

Implement path optimizer for cutting DXF files #149

Closed McNugget6750 closed 7 years ago

McNugget6750 commented 7 years ago

When importing any DXF from solidworks or most other dxf exporting tools, the individual objects are separated and in random order and direction. Some tools like dxf2gcode implement a "traveling salesman" algorithm to optimize tool paths and to bring all vectors and arcs into one single shape with a common traveling direction (CW or CCW).

Additionally, please implement sending arcs in the following format. Again, dxg2gcode implements an arc detection algorithm using a biarc Fitting algorithm. Maybe there is a way to integrate that? G2 X -36.061 Y -19.061 I -1.061 J -1.061

ghost commented 7 years ago

Pull requests gladly accepted: take a go at coding. It (:

On Oct 6, 2016 1:33 AM, "Timo" notifications@github.com wrote:

When importing any DXF from solidworks or most other dxf exporting tools, the individual objects are separated and in random order and direction. Some tools like dxf2gcode implement a "traveling salesman" algorithm to optimize tool paths and to bring all vectors and arcs into one single shape with a common traveling direction (CW or CCW).

Additionally, please implement sending arcs in the following format. Again, dxg2gcode implements an arc detection algorithm using a biarc Fitting algorithm. Maybe there is a way to integrate that? G2 X -36.061 Y -19.061 I -1.061 J -1.061

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openhardwarecoza/LaserWeb3/issues/149, or mute the thread https://github.com/notifications/unsubscribe-auth/AHVr23T1vkTWF1yRfv5mRBNhXQPxgjsGks5qxDOvgaJpZM4KPZf5 .

ghost commented 7 years ago

Nb note from Todd, but we can never reliably calculate offset paths as used in the CNC cam portion, from Arcs. Lines are much safer. . Investigate your Grbl Acceleration