Commit 08284f2b authored by lode_leroy's avatar lode_leroy
parent 8da6f012
...@@ -51,7 +51,11 @@ def ImportModel(filename, use_kdtree=True): ...@@ -51,7 +51,11 @@ def ImportModel(filename, use_kdtree=True):
kdtree = None kdtree = None
f = open(filename,"rb") f = open(filename,"rb")
header = f.read(80) # read the first two lines of (potentially non-binary) input - they should contain "solid" and "facet"
header = f.readline(100)
header += f.readline(100)
# read byte 80 to 83 - they contain the "numfacets" value in binary format
f.seek(80)
numfacets = unpack("<I",f.read(4))[0] numfacets = unpack("<I",f.read(4))[0]
binary = False binary = 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