Commit fe01d6b9 authored by sumpfralle's avatar sumpfralle

fixed rare extrusion bug (triggered by multiple identical vertices in a triangle)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1250 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 49c8e543
......@@ -934,7 +934,10 @@ class PolygonGroup(object):
final_points.append(cp)
else:
final_points.extend([Point(*coord) for coord in coords])
valid_points = [p for p in final_points if not p is None]
valid_points = []
for p in final_points:
if not (p is None) and not (p in valid_points):
valid_points.append(p)
if len(valid_points) < 3:
result = []
elif len(valid_points) == 3:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment