Open GoogleCodeExporter opened 9 years ago
thanks Triffid! It seems that the exsting detection routine is not robust
enough. I have rewritten the codes and adopt a new way to do this. the new
method looks like this:
bool isBinary = false;
if(file size > the min file size of a binary stl file) {
assume this is a binary file and take a snippet of bytes following the file header
for(each byte) {
if(the byte code > 127) {
isBinary = true;
break;
}
}
}
if(isBinary)
read as a binary file
else
read as an ascii file
this method is introduced by 3ds Max and also used in MeshLab and it works
perfectly.
I have commited the new code into the repository. great!
Original comment by Humu2...@gmail.com
on 10 Nov 2011 at 3:41
uuups! forgiveme! i do a mistake with the right permissions on FTP. Very stupid
from my own... i'm able to load up to 9M STL files.
Original comment by claudio....@gmail.com
on 20 Feb 2014 at 3:19
Original issue reported on code.google.com by
triffid....@gmail.com
on 28 Oct 2011 at 4:02