ArcCAM

 From:  probotix
11543.27 In reply to 11543.26 
Michael,

I have posted the latest code with both isClockwise functions. You can choose which one on lines 178 & 179.

https://github.com/probotix/ArcCAM

With const DEBUG = true, you'll have to change the path to a hard coded log file on line 48.

Here is a file. There are several arcs that do not compute properly in this file in isClockwise2. Segments 3, 14, 20, 24, and 28 are all reversed.

In the original isClockwise all arcs are generated just fine, except segment 14, the 180 degree arc. If I split that arc into 2x 90s, it will generate fine, but I dont consider that a solution.

I use ncviewer to preview the tool paths:

https://ncviewer.com/

You can just paste into the text box and you can also step through each block line by line. I should note that ncviewer has a bug where it doesnt display 180 degree arcs at all. Ncviewer has other issues, too, like it cannot handle arcs that use I & J instead of R. Eventually I'll build a gcode preview script Moi, maybe where it throws it into a certain named group or different color.

>Len
Attachments: