Hi,
I often imported dxf splines and passed them into lcnc gcode.
It can be hard to get the splines look the same in different programs. I think different algo's are used.
It's a shame the acad algo is closed source. In this way you can never replicate the spline. Autodesk f.ckers.
Splines using fitpoints are my favorite.
On my github there are different spline library's. Also a 3d spline with fitpoints is over there. And a 2d spline algo made
by a mathician for me.
Programs like inkscape exports a spline to a linestrip. This is a option. A more exotic option is to
export a spline into arc segments.
This is from the dxfrw lib, the same as Freecad and others are using, line 847 to 900 gives dxf spline info.
I use this lib for importing dxf and then parse to gcode. See "big data" attachement. image missing /media/kunena/emoticons/cool.png
github release page: halcore/src/hal/components/matrix/cpp_interface/libspline => bezier_spline, cubic_spline, spline
github release page: halcore/src/hal/components/matrix/cpp_interface/libdxfrw => dxfrw lib
Not really good, but for info:
read spline:
github.com/grotius-cnc/qt_cadcam_rev/blo...xf/dxf_read_spline.h
draw spline:
github.com/grotius-cnc/qt_cadcam_rev/blo...er/display/display.h
Implementation of 3d splinelib, very cool:
github.com/grotius-cnc/splinelib
2d spline algo using fitpoints starting at line 185
github.com/grotius-cnc/cadcam/blob/master/opengl.cpp