Some svg circles don't work

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
greyltc
Posts: 21
Joined: Thu Jan 14, 2016 2:24 pm
Location: England

Some svg circles don't work

Postby greyltc » Thu Oct 18, 2018 1:06 am

I have some circle shaped edges that aren't getting SVG exported correctly unless I change line

https://github.com/FreeCAD/FreeCAD/blob ... t.py#L2225
from

Code: Select all

if round(edge.Curve.Axis.getAngle(drawing_plane_normal),2) == 0:
to

Code: Select all

if round(edge.Curve.Axis.getAngle(drawing_plane_normal),2) == 3.14:
Is this a bug in getAngle? I can't really seem to recreate this issue except in a pretty complicated model where I'm trying to section and then export the resulting wires.