From: <J.B...@ew...> - 2009-10-11 18:54:38
|
Hi guys, Seems the bug was already fixed in 2geom. However, I have a question about the Bezier::valueAndDerivatives(Coord t, unsigned n_derivs) method. Now, the size of the returned vector equals n_derivs+1 with a maximum of order()+1. Aren't higher order derivatives just zero and shouldn't we return those too if requested? It is very inconvenient if the size of the returned vector is determined by the particular bezier type. Because you usually don't want to know the type of the curve. E.g. Curve c = getcurve(); derivs = c.valueAndDerivatives(0, 3); Currently, one does not know the size of derivs. It is not possible to simply do derivs[2] to get the 2nd derivative without crashing in some cases..... very annoying! Shall we reprogram the method to always return a vector with size n_derivs+1? This is what D2:valueAndDerivatives expects!! (that's why 2geom sometimes crashes... see d2.h line 102) Ciao, Johan > -----Original Message----- > From: Diederik van Lierop [mailto:ma...@di...] > Sent: zaterdag 10 oktober 2009 23:52 > To: lib...@li... > Subject: [Lib2geom-devel] Crasher... > > Hi 2geom gurus, > > Looks like we have a crasher in Inkscape caused by 2geom, but > I got stuck and need some help. I got quite far in tracing > this, so could you please see if you can reproduce this XP > only bug and take it from where I left it? > > See > > https://bugs.launchpad.net/inkscape/+bug/425557/comments/18 > > Many thanks, > > Diederik > > -------------------------------------------------------------- > ---------------- > Come build with us! The BlackBerry(R) Developer Conference in > SF, CA is the only developer event you need to attend this > year. Jumpstart your developing skills, take BlackBerry > mobile applications to market and stay ahead of the curve. > Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Lib2geom-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/lib2geom-devel > |