Draft: Fixed autoconversion of bsplines to circles in DXF export

This commit is contained in:
Yorik van Havre 2014-12-23 12:13:25 -02:00
parent c918ef7e40
commit da5504eebb

View File

@ -1511,7 +1511,7 @@ def writeShape(sh,ob,dxfobject,nospline=False,lwPoly=False):
# print("lone edges ",loneedges)
for edge in loneedges:
if (DraftGeomUtils.geomType(edge) in ["BSplineCurve","BezierCurve"]): # splines
if (len(edge.Vertexes) == 1) and (edge.Curve.isClosed()):
if (len(edge.Vertexes) == 1) and (edge.Curve.isClosed()) and (edge.Area > 0):
# special case: 1-vert closed spline, approximate as a circle
c = DraftGeomUtils.getCircleFromSpline(edge)
if c: