Comment 15 for bug 269002

Revision history for this message
Alvin Penner (apenner) wrote :

just a couple of quick comments on precision:

- for any type of arc shapes or circles, if they are convex, then the area calculated will be slightly too high. This routine uses the helper routine cubicsuperpath.py which converts arcs into cubic Bezier curves before performing the calculations, and there is a bit of systematic error in doing this conversion. The worst case scenario, I believe, is the case of a 90 degree closed arc. In this case I did a theoretical calculation that indicates that the calculated area may be too high by 0.03 %, which is roughly compatible with the error quoted above.

- for the case of a polygon, I have not been able to detect any errors, could you attach a sample svg file?