Commit 07aaaa83 authored by sumpfralle's avatar sumpfralle

r698@erker: lars | 2010-02-21 15:34:24 +0100

 increase maximum length the first two lines of ascii STL files (AOI sometimes creates loong descriptions)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@150 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 05142340
...@@ -52,8 +52,8 @@ def ImportModel(filename, use_kdtree=True): ...@@ -52,8 +52,8 @@ def ImportModel(filename, use_kdtree=True):
f = open(filename,"rb") f = open(filename,"rb")
# read the first two lines of (potentially non-binary) input - they should contain "solid" and "facet" # read the first two lines of (potentially non-binary) input - they should contain "solid" and "facet"
header = f.readline(100) header = f.readline(200)
header += f.readline(100) header += f.readline(200)
# read byte 80 to 83 - they contain the "numfacets" value in binary format # read byte 80 to 83 - they contain the "numfacets" value in binary format
f.seek(80) f.seek(80)
numfacets = unpack("<I",f.read(4))[0] numfacets = unpack("<I",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