toxiclibs Spline2D find knots?
in
Contributed Library Questions
•
1 year ago
Hi there, I'm currently trying to translate curves created with toxi's Spline2D class into g-code. Although it would be possible to just use computeVertices() with a very high resolution and make a series of lines from that, a better option would be to represent the spline as a quadratic NURBS path, which g-code supports. In order for that to happen though I need to have access to the knots generated by the spline for making the curves between control points.
I have been looking at findCPoints() and attempting to use the delta values but I'm not quire sure I understand how. Simply plotting the delta points gives what looks like the correct layout but in the wrong location and scale. Any idea for how to do this correctly or possibly a better way that's completely different? Thanks.
1