FormerLurker / ArcWelderLib

A collection of projects used to convert G0/G1 commands to G2/G3 commands.
364 stars 39 forks source link

ArcWelder increases amount of movements #59

Open DBa2016 opened 3 years ago

DBa2016 commented 3 years ago

As per attached screenshot, AW (command line version for Win64) increases the amount of movements for certain arc groups instead of decreasing them. Leaving alone the question how this can happen (maybe too many actually straight movements are recognized as an arc?), it is probably better to by default not weld arcs where it would actually increase amount of commands.

I am also attaching the gcode file (before and after conversion) as well as the log, all with added ".txt" (otherwise cannot upload for some reason). aw_output

after_conversion.gcode arcwelder.log source.gcode

FormerLurker commented 3 years ago

The resolution of either the original model or your slicer is too low to render any arcs:

image

Arc welder detected deviations that were higher than the default resolution of 0.05mm. If you increase the resolution to 0.1mm you should see a 48% decrease:

image

Also, arc welder did not increase the amount of movements in your original, it did convert some arcs (probably the ones on the outside edge). It reduced the number of movements by 8.8%. It also decreased the file size somewhat.

FYI, if you are using cura, make sure that you haven't artificially limited the output resolution. Check these two settings:

image

If the slicer reduces the quality, or if the STL has too low of a resolution, that can prevent accurate toolpaths, which arc welder rejects when using the default settings. Anyway, it looks like it is performing as expected. Let me know if you have any additional questions or concerns, and thanks for posting!