Commit d37b4fc8 authored by Lars Kruse's avatar Lars Kruse

added a debug message regarding STL header data

parent 0d1c796e
......@@ -93,6 +93,8 @@ def ImportModel(filename, use_kdtree=True, callback=None, **kwargs):
f.seek(80)
numfacets = unpack("<I", f.read(4))[0]
binary = False
log.debug("STL import info: %s / %s / %s / %s" % \
(f.len, numfacets, header.find("solid"), header.find("facet")))
if f.len == (84 + 50*numfacets):
binary = True
......
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