On 9-9-2012 8:57, Arshdeep Singh wrote:
---------- Forwarded message ---------- From: Arshdeep Singh <moduli16@...400...> Date: Sun, Sep 9, 2012 at 12:27 PM Subject: Re: [Inkscape-devel] B-Spline To: jabier.arraiza@...2893...
I am a computer graphics enthusiast who loves mathematics. The idea of implementing B-Splines seems really cool. I am proficient in C/C++. And I am doing a course in college that covers the basics of Beizer Curves and B-Splines. Can I be of any help ?
You could try to write a conversion from B-spline to 2geom's SBasis curves. This would allow programmers to very easily use B-splines in Inkscape/2geom. Have a look at 2geom's Curve class, you would have to inherit from it and implement all required methods. See for example the BezierCurve class or the EllipticalArc class. The implementation of BSplineCurve::toSBasis() will be the meat of the work.
(2geom's documentation is not all that bad, run doxygen on its source and you'll find information on how sbasis curves work. and of course, don't forget the lib2geom-devel@...2073... maillist!)
Cheers, Johan