Commit 8a989971 authored by sumpfralle's avatar sumpfralle

no warnings for valid 3DFACE items with p3==p4


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1020 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 0b20d91c
...@@ -703,7 +703,9 @@ class DXFParser(object): ...@@ -703,7 +703,9 @@ class DXFParser(object):
point3 = Point(p3[0], p3[1], p3[2]) point3 = Point(p3[0], p3[1], p3[2])
triangles = [] triangles = []
triangles.append((point1, point2, point3)) triangles.append((point1, point2, point3))
if not None in p4: # DXF specifies, that p3=p4 if triangles (instead of quads) are
# written.
if (not None in p4) and (p3 != p4):
point4 = Point(p4[0], p4[1], p4[2]) point4 = Point(p4[0], p4[1], p4[2])
triangles.append((point3, point4, point1)) triangles.append((point3, point4, point1))
for t in triangles: for t in triangles:
......
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