Draft: Fixed inverted arcs in DXF output - fixes #1513
This commit is contained in:
parent
8e1ebcd6fb
commit
9cd2c750db
|
@ -1506,6 +1506,8 @@ def getArcData(edge):
|
|||
a2 = -DraftVecUtils.angle(ve2.sub(ce))
|
||||
if round(a1,Draft.precision()) == round(a2,Draft.precision()):
|
||||
return None,None, None, None
|
||||
if edge.Curve.Axis.z < 0.0:
|
||||
ang1, ang2 = ang2, ang1
|
||||
pseudoarc = Part.ArcOfCircle(edge.Curve,a1,a2).toShape()
|
||||
if round(pseudoarc.Length,Draft.precision()) != round(edge.Length,Draft.precision()):
|
||||
ang1, ang2 = ang2, ang1
|
||||
|
@ -1833,4 +1835,4 @@ dxfUseStandardSize = p.GetBool("dxfStdSize",False)
|
|||
dxfGetColors = p.GetBool("dxfGetOriginalColors",False)
|
||||
dxfUseDraftLayers = p.GetBool("dxfUseDraftLayers",False)
|
||||
dxfBrightBackground = isBrightBackground()
|
||||
dxfDefaultColor = getColor()
|
||||
dxfDefaultColor = getColor()
|
||||
|
|
Loading…
Reference in New Issue
Block a user