FormerLurker / ArcWelderLib

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

Enahnce arc direction detection #8

Closed FormerLurker closed 4 years ago

FormerLurker commented 4 years ago

Arc direction detection has been a bit hairy in previous versions. It rarely failed, but the method of verification caused some smaller segments not to be converted. The routine relied on a constant, which limited accuracy.

Alter detection routine so that it can detect more arcs without generating one that has the wrong rotation.

Add a direction test that allows the arc to be repaired if the direction is wrong.