Commit 0fb398c9 authored by lode_leroy's avatar lode_leroy

fix missing triangle at end of binary STL

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@230 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent a5cd17ed
......@@ -78,7 +78,7 @@ def ImportModel(filename, use_kdtree=True):
p3 = None
if binary:
for i in range(1,numfacets):
for i in range(1,numfacets+1):
a1 = unpack("<f",f.read(4))[0]
a2 = unpack("<f",f.read(4))[0]
a3 = unpack("<f",f.read(4))[0]
......
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