Comments (2)
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 [email protected]
on 10 Nov 2011 at 3:41
from jsc3d.
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 [email protected]
on 20 Feb 2014 at 3:19
from jsc3d.
Related Issues (20)
- Depth passed to onmousedown is always -Infinity HOT 1
- IE 11 throws error for charCodeAt HOT 1
- Rotate on page load HOT 1
- Load .dds Textures HOT 4
- Support for colored binary STL HOT 10
- online simulation HOT 2
- .ctm files wont load HOT 4
- doesn't render smoothly when container with/height are percentages
- WebGL problem when selecting mesh 127
- Add a color to the selected mesh / Add different types of meshes (i.e. type#A or type#B)
- transparency issue with doublesided meshes HOT 2
- Importing meshes with materials HOT 1
- Touch-Device: Pinch&Zoom release gesture not working properly HOT 2
- Animate the rotation in slow motion HOT 2
- how to Change color for back faces or flipped normals HOT 1
- No display in IE, bad display in Safari HOT 1
- Adjust loading bar style? HOT 3
- Error upon loading Uncaught TypeError: Cannot read property 'width' of null HOT 2
- Distance between 2 points on mesh
- transparent mesh rotated?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsc3d.