circles and arcs are incorrectly drawn (bezier appoximation)

Bug #168218 reported by Bug Importer
16
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

Created a circle (in the attachment the red one), duplicated it by Ctrl+D
(the green one). Then changed green full circle into arc. Depending on
start and end angle the perfect circle section becomes slightly deformed
(so the red circle underneath becomes visible). Is that intentional or a
bug?

<email address hidden>

Revision history for this message
Bug Importer (bug-importer) wrote : Deformation of Arcs
Revision history for this message
gustav_b (gustav-b) wrote :

Originator: NO

Inkscape represent circles, arcs and ellipses using bezier curves. What
you see on the screen when you draw an circle in Inskcape is not a "perfect
circle" but an approximation of one using four cubiz bezier curves. It
think that the correctness of the approximation varies with arc length and
the number of curves used in it, and that's why you see the errors in your
example.

The correct solution, I guess, is to make Inkscape represent ellipses and
arcs as real SVG ones, and render them without the bezier approximation
way.

(Does anyone know why the decision was made to store ellipses as beziers
in the first place? Are there any benefits?)

Revision history for this message
Bryce Harrington (bryce) wrote :

Originator: NO

I suspect it was for coding convenience early, early on.

Revision history for this message
John Cliff (johncliff) wrote :

This is down to the use of beziers as mentioned previously. Do we have any intent to change this? if not we should probably close this as wont fix.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

fixed in rev 20771

Changed in inkscape:
status: Confirmed → Fix Released
jazzynico (jazzynico)
Changed in inkscape:
milestone: none → 0.47
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.