aewallin / opencamlib

open source computer aided manufacturing algorithms library
http://www.anderswallin.net/CAM
GNU Lesser General Public License v2.1
393 stars 136 forks source link

test_example file and G02 code generation #155

Open 7-Green opened 1 year ago

7-Green commented 1 year ago

I try to run the C++ version of the test_example file, but the corresponding G02 code is not generated in the curve area. What is the problem?

7-Green commented 1 year ago

program running result: CNC.txt

vespakoen commented 1 year ago

These algorithms do not create G02 codes, only "points" which we turn into lines / linear moves. You can change the sampling parameters to get more detailed curves, and potentially an external curve fitting algorithm to turn a bunch of linear moves into a G02 statement but that is out of the scope(?) of this project.