Commit 1ca60524 authored by sumpfralle's avatar sumpfralle

fixed a bug (not final) reported by alvaro


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@803 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 1706b528
...@@ -143,8 +143,9 @@ def ImportModel(filename, use_kdtree=True, program_locations=None, unit=None): ...@@ -143,8 +143,9 @@ def ImportModel(filename, use_kdtree=True, program_locations=None, unit=None):
t = Triangle(p1, p3, p2) t = Triangle(p1, p3, p2)
elif dotcross < 0: elif dotcross < 0:
if not normal_conflict_warning_seen: if not normal_conflict_warning_seen:
# TODO: use the line number here instead of its content
log.warn(("Inconsistent normal/vertices found in line " \ log.warn(("Inconsistent normal/vertices found in line " \
+ "%d of '%s'. Please validate the STL file!") \ + "%s of '%s'. Please validate the STL file!") \
% (current_line, filename)) % (current_line, filename))
normal_conflict_warning_seen = True normal_conflict_warning_seen = True
t = Triangle(p1, p2, p3) t = Triangle(p1, p2, p3)
......
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