msteinbeck / tinyspline

ANSI C library for NURBS, B-Splines, and Bézier curves with interfaces for C++, C#, D, Go, Java, Javascript, Lua, Octave, PHP, Python, R, and Ruby.
MIT License
1.21k stars 209 forks source link

BSpline to Lines #72

Closed msteinbeck closed 1 year ago

msteinbeck commented 8 years ago

http://www.antigrain.com/research/adaptive_bezier/index.html

msteinbeck commented 6 years ago

This paper shows an approach for adaptive forward differencing of splines with arbitrary order:

https://dl.acm.org/citation.cfm?id=54852.378510

msteinbeck commented 5 years ago

sample can now be used to subdivide a spline into a sequence of points which, in turn, form a sequence a lines. An example is given at splines_as_lines.py.

msteinbeck commented 4 years ago

Unlike sample, a toLines must respect discontinuity. Instead of passing the number of desired points (like in sample), it might be easier to pass the maximum distance between two knots.