Draft - fixed chamfer property of Wires - fixes #3044

This commit is contained in:
Yorik van Havre
2018-01-25 19:07:19 -02:00
parent 141caeb53e
commit f0d06f0c15

View File

@@ -4851,6 +4851,11 @@ class _Wire(_DraftObject):
npts.append(p1.add(FreeCAD.Vector(v).multiply(j+1)))
pts = npts
shape = Part.makePolygon(pts+[pts[0]])
if "ChamferSize" in obj.PropertiesList:
if obj.ChamferSize.Value != 0:
w = DraftGeomUtils.filletWire(shape,obj.ChamferSize.Value,chamfer=True)
if w:
shape = w
if "FilletRadius" in obj.PropertiesList:
if obj.FilletRadius.Value != 0:
w = DraftGeomUtils.filletWire(shape,obj.FilletRadius.Value)