Some svg circles don't work

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
greyltc
Posts: 24
Joined: Thu Jan 14, 2016 2:24 pm
Location: England

Some svg circles don't work

Post by greyltc »

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.
Post Reply