handle infinite lines and segments in OpenSCAD2Dgeom.superWireReverse

This commit is contained in:
wmayer 2016-12-21 10:07:55 +01:00
parent a862279d7f
commit 7fd367a396

View File

@ -461,7 +461,7 @@ def superWireReverse(debuglist,closed=False):
nexte[0].Vertexes[-1*(not nexte[1])].Point)
else:
p2 = curr[0].Vertexes[-1*(curr[1])].Point
if isinstance(curr[0].Curve,Part.LineSegment):
if isinstance(curr[0].Curve,(Part.LineSegment, Part.Line)):
print "line",p1,p2
newedges.append(Part.LineSegment(p1,p2).toShape())
elif isinstance(curr[0].Curve,Part.Circle):