Commit 37977680 authored by sumpfralle's avatar sumpfralle

r575@erker: lars | 2010-02-04 22:01:35 +0100

 don't skip triangles pointing down (z of triangle's normal is negative) - this was supposed to be an optimization, but it breaks further model transformations
 add check for invalid triangles to "binary" parser
 use "is" for comparing with "None"
 better wording: use "invalid" instead of "irregular triangle" (the English language is different from German :))


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@98 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent e7894e5b
......@@ -117,8 +117,6 @@ def ImportModel(filename, use_kdtree=True):
print "ERROR: skipping invalid triangle: %s / %s / %s" % (p1, p2, p3)
continue
t._normal = n
if t.normal().z < 0:
continue
model.append(t)
else:
AOI = False
......
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