So, I have tried for the past week without any luck with Assimp (no proper documentation, etc) and I have implemented a pretty efficient STL Rendering system using VTK. If there are any updates/changes, I will probably update it in the VTK forum (since now it has become completely unrelated to NeHe).
Does anyone have any references to documentation regarding Assimp..? I have been trying since the past week and I haven't been able to even get the importer to fire up.. The documentation given in the site of the source code isn't very comprehensive and the sample codes just do not work.
Maybe simpler to learn and integrate a 3rd party API (Assimp etc) rather than learn how to parse file formats from scratch. At least consider it one more good time before continuing. Both paths will be beneficial to your learning.
I actually tried attaching a part of the file here but the attachement plugin wouldn't let me do it. I didn't know that the input formats for Binary and ASCII STLs were different..
In any case, the name of the mesh is irrelevant, right..? I mean, as long the normals and vertices can be read, they will be rendered, right..?
I have found extensive software packages that do a lot of stuff (Assimp, VTK, etc).. But they are way too complicated and just increase the dependencies of my code. I would prefer to have something much simpler..
I'm confused. The file in your original post looks like some kind of text format. Your code appears to be trying to treat it as binary data. Have you pre-processed / compiled the file into a binary format?
The data type is ASCII STL. I will run the code you have given and update asap. Thanks.