2010/10/6 Jasper van de Gronde <th.v.d.gronde@...528...>:
My guess is that one of TWO(???) methods to convert an arc to an SBasis in lib2geom is used (indirectly?). One is in 2geom/elliptical-arc.cpp, the other in 2geom/svg-elliptical-arc.cpp (search for toSBasis). Perhaps one of the lib2geom developers can comment.
The code in svg-elliptical-arc.cpp is used. However, this is not very relevant anymore because in 2Geom trunk SVGEllipticalArc is now a subclass of EllipticalArc. We really need to do a 2Geom sync, preferably immediately after 0.48.1 is out of the door.
There might be additional versions of the conversion code, hich go directly from elliptical arcs to Beziers, somewhere in SVG elliptical arc toys.
PS: Direct conversion to Beziers is a common operation. Doesn't it make sense to have a virtual function in Curve for it, rather than going through SBasis?
Regards, Krzysztof