core icon indicating copy to clipboard operation
core copied to clipboard

G5 cubic spline

Open kimstik opened this issue 3 years ago • 4 comments

https://github.com/grblHAL/core/wiki/Changes-from-grbl-1.1

I think fact that G5 supported should be reflected there. My dream is to see G5.1 and G5.2 one day for Quadratic/NURBS Spline ;)

kimstik avatar Jun 28 '22 13:06 kimstik

I'll add G5.1 soon, it is a matter of transforming the single control point into two for a cubic spline. Do you have any test files complete with a plot of the expected parh that I can use for verification?

NURBS is more complicated as a dynamic array of control points is needed - and some of the processors supported by grblHAL do not have much heap available for that. BTW are there any CAM tools outputting NURBS paths that warrants the work involved in making NURBS available?

terjeio avatar Jul 13 '22 07:07 terjeio

https://github.com/domoszlai/juicy-gcode/issues/7 https://github.com/DeepSOIC/SplineTravel https://github.com/Matttab/spline-examples/tree/main/linuxCNCsplineTest

I guess it's not that hard to extract NURBS from Rhino objects. To be honest, I have no idea who supports NURBS post-processing natively. What warms me up is the possibility to specify compact and smooth code .

kimstik avatar Jul 13 '22 10:07 kimstik

I could not find any G5.1 examples via the links you provided.

I guess it's not that hard to extract NURBS from Rhino objects.

I am not able to do that, are you?

BTW the latest edge version of ioSender should now render G5.1 paths correcly, and has initial support for rendering multi turn arcs (G2/G3 with P parameter). Note that grblHAL is not yet ready to handle these.

terjeio avatar Jul 13 '22 18:07 terjeio

one more G5 (Cubic) sample. imported from https://upload.wikimedia.org/wikipedia/commons/f/ff/GClef.svg juicy-gcode.exe GClef.svg -b -o GClef.nc GClef.zip

G5.1 (Quadratic) example: GClef_quad.zip

kimstik avatar Jul 28 '22 07:07 kimstik