Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: Splines/splinegons through given points #140
A C implementation of an algorithm to draw a spline through given points exists in the tinyspline project:
Currently, Ipe only supports drawing splines with given control points:
I drew the first image using the tinyspline Python bindings as follows:
There's a tinyspline issue about supporting splinegon interpolation in the project.
Adding interpolated splines has been on my todo list for many years.
The question is what model to choose. Xfig, for instance, has always had interpolated splines, both open and closed. Apparently they switched to a new spline model that can be both interpolating and approximating in Xfig 3.2.
At some point many Ipe users came from Xfig, and it would have been desirable to be able to support interpolating splines when converting xfig figures. I'm not sure how important this is today.
Does Inkscape have interpolating splines?
There are other nice splines - clothoid splines (http://libspiro.sourceforge.net/), for instance, allow you to have both continuous curvature and continuous slope, and look better than B-splines.
If you want to see interpolated splines in Ipe, please start a discussion on ipe-discuss to get some consensus of what these splines should look like.