grblHAL / core

grblHAL core code and master Wiki
Other
306 stars 74 forks source link

G5 cubic spline #155

Open kimstik opened 2 years ago

kimstik commented 2 years ago

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 ;)

terjeio commented 2 years ago

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?

kimstik commented 2 years ago

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 .

terjeio commented 2 years ago

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.

kimstik commented 1 year ago

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