Question

I've started to get familiar with Assimp. My tasks with this library is quite simple, just to load a 3D model, visualize it and sparse neccessary information from it e.g. facets, facet normals... probably some manipulatinos with camera

I've successfully loaded several models at link

the example given here can load obj and ascii stl models. However, the same task cannot be done with STL binary model which generates an error like: "ASCII file is empty or invalid; no data loaded - could not load model"

two other references confirm me that my error is not the first one:

link1

link2

the 2nd link recommends to use ivcon as a solution. however the post was quite 3 years ago

How about the current solution? can I fix it directly with some import command settings?

Was it helpful?

Solution

my bad! I was so closed to the answer which is already there in link2 but I didn't even try it.

So, just now, I simply changed the STL file's header "solid" to any other group of characters such as "abcde" and the import works normally

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top