Hello to all.
I know some Python and I am able to use inkscape develop curve B-Spline. The Spyro curbas are fine for artistic themes but the B-Spline give greater accuracy with less work. Not quite where to begin. I have the mathematical formula for creating splines that I got Internet, I have always worked with programs in script and not much to compile C or anything Can you help me with the first / ... steps?
Greetings from Pamplona. Sorry for my English.
Hi Jabier,
An extension to draw B-Spline curves sounds good, but how do you plan on storing these curves in SVG format? SVG only supports quadratic and cubic Bézier curves, and Inkscape only cubic Béziers. Therefore I guess you should store the B-Spline curve as a group of Bézier curves (I assume you know that a B-Spline can be described as a piecewise Bézier curve).
Therefore, a cubic B-Spline curve should be the easiest. A quadratic one is also possible, but you would have to degree-elevate these quadratic Béziers to cubic Béziers. Higher order doesn't seem to be possible.
Regarding the formula/expression for B-Splines, I take it that you mean the Cox-deBoor recurrence relation?
Do you plan on supporting any knot-vector, or only uniform ones that are closed (i.e. repetitive knots at the start and end)? Also, NURBS (Non-Uniform Rational B-Spline) don't seem to be possible at the moment (no support for rational curves, at least not yet).
Furthermore, the Inkscape forum would also be a good place to discuss this. Looking forward to any progress!
Best regards, Pieter
On Sun, 02 Sep 2012 11:24:23 +0200 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...> wrote:
Hello to all.
I know some Python and I am able to use inkscape develop curve B-Spline. The Spyro curbas are fine for artistic themes but the B-Spline give greater accuracy with less work. Not quite where to begin. I have the mathematical formula for creating splines that I got Internet, I have always worked with programs in script and not much to compile C or anything Can you help me with the first / ... steps?
Greetings from Pamplona. Sorry for my English.
Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
Jabiertxo Arraiza Cenoz
-
Pieter Barendrecht