SVG Path with zero radius arc exports weird arcs to DXF
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Alvin Penner |
Bug Description
This is not that important but would be nice to have it fixed.
If you open a SVG from some other source with a path containing zero radius arcs they get exported to some very large arcs in DXF.
This problem only occurs if you open foreign SVGs because you won't be able to draw such a strange path. The path itself is displayed correctly in Inkscape, it is only exported to DXF in a strange way.
Example 1:
m 100,800 a 0,0 0 0 0 0,0 l 200,0 0,-100 -200,0 z
This path is a rectangle, but if you export it do DXF the arc becomes a line three times as high as the rectangle.
Example 2:
M0,0V450A0,
Also a rectangle, but with absolute coordinates. Here the four arcs become really large arcs the same width as the rectangle itself.
I would suggest to omit zero radius arcs on export.
Use case is if you have to open SVGs generated by some tool and convert them to DXF for further processing.
Related branches
tags: | added: dxf exporting |
Changed in inkscape: | |
importance: | Undecided → Low |
Changed in inkscape: | |
milestone: | none → 0.91 |
status: | Fix Committed → Fix Released |
assignee: | nobody → Alvin Penner (apenner) |
confirmed on Windows XP, Inkscape rev 12755.
strictly speaking, this is illegal svg code, not because the radius is zero, but because the start point and endpoint of the arc are the same. In this case the arc is indeterminate, cannot be specified uniquely. The svg spec indicates that nothing should be drawn in this case. fwiw Internet Explorer 8 (Adobe SVG viewer) shows exactly the same deficiency when displaying the original svg file, as does the dxf output.
in any event, this should be fixable, I'll look into it ...