+ fixes #0001966: edges in Shape2DView extend beyond endpoint
This commit is contained in:
parent
67d303ae85
commit
75ced60a58
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user