+ fixes #0001966: edges in Shape2DView extend beyond endpoint

This commit is contained in:
Sebastian Hoogen 2015-02-25 20:09:43 +01:00 committed by Yorik van Havre
parent 67d303ae85
commit 75ced60a58
2 changed files with 2 additions and 2 deletions

View File

@ -4577,7 +4577,7 @@ class _Shape2DView(_DraftObject):
for g in groups[5:]:
edges.append(g)
#return Part.makeCompound(edges)
if hasattr(obj,"Tessellation"):
if hasattr(obj,"Tessellation") and obj.Tessellation:
return DraftGeomUtils.cleanProjection(Part.makeCompound(edges),obj.Tessellation,obj.SegmentLength)
else:
return Part.makeCompound(edges)

View File

@ -2024,7 +2024,7 @@ def cleanProjection(shape,tessellate=True,seglength=.05):
l = Part.Line(e.Vertexes[0].Point,e.Vertexes[-1].Point).toShape()
newedges.append(l)
else:
newedges.append(e.Curve.toShape())
newedges.append(e.Curve.toShape(e.FirstParameter,e.LastParameter))
else:
newedges.append(e)
except: