Commit acb74953 authored by lode_leroy's avatar lode_leroy

fix STL detection

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@58 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 4e40b06b
......@@ -57,11 +57,11 @@ def ImportModel(filename, use_kdtree=True):
if os.path.getsize(filename) == (84 + 50*numfacets):
binary = True
elif header.find("solid ")>=0:
elif header.find("solid")>=0 and header.find("facet")>=0:
binary = False
f.seek(0)
else:
binary = true
binary = True
if use_kdtree:
kdtree = PointKdtree([],3,1,epsilon)
......
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