CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
614 stars 143 forks source link

Generate GCode from optimized tool paths. #11

Open jcoffland opened 10 years ago

jcoffland commented 10 years ago

Currently the tool path optimizer is useless because it can only read gcode and optimize the path but cannot regenerate optimized gcode.

See #9.

jfmoya commented 9 years ago

I'm working on a 2.5D path optimizer and looks promising. It uses two steps: firs it organizes the gcode into paths the second rewrites in order of nearest path firs comparing entry X Y values. indiangrbl indianoptimized The Gcode was generated using MakerCam, the preview images UniversalGcodeSender

jcoffland commented 9 years ago

Your method can give large improvements. I've implemented a more complicated and CPU intensive method that can give a bit better results. It uses simulated annealing. In some case it can be much better than the greedy algorithm. I've written the optimization code but have not yet finished it to the point where it can spit the GCode back out. See src/camotics/opt/.

Anyway your method is probably the preferred one in most cases simply because it's a lot faster to run.