On 2010-10-06 11:34, Alvin Penner wrote:
Hi, I wonder if anyone could point me to the general location of the code that is responsible for converting a circular arc to its corresponding cubic Bezier approximations for the case where the arc has no sodipodi attributes. I know that the file src\sp-ellipse.cpp does this if sodipodi attributes are present, but it appears that the non-sodipodi case is handled separately.
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.
Note that these files should not be changed in Inkscape. Ideally you'd fix current lib2geom and the change will be incorporated in Inkscape the next time our copy of the source is updated.