Question about STL file
Show older comments
Hello!
I have an STL file which contains the facets and vertices. My concern is about the way the facets are saved because I have noticed that the facets don't seem to have any common nodes with each other which is not obvious for me, so it would be very much appreciated if anyone can tell if this is normal or I am having some problem in my file!
Note: I have attached a screenshot of the STL file
Thank you and best regards!

3 Comments
Ano
on 4 Dec 2018
This is to be expected when using FEX #22409, or any other STL decoder which does not properly prune duplicate vertex data. It's a consequence of the way an STL file is structured. The vertex list will be exactly 3x as long as the face list. It will be full of redundant entries, and no two faces will share any vertices or edges.
The fix is simple. Don't use those old buggy decoders. It was understandable in late 2018, which was when the built-in tools were introduced. Today, almost everyone will be running a new enough version to have adequate STL tools. If you have an old copy of #22409 or another FEX download with the same name "stlread", find it, delete it, and adapt your usage to conform to the expectations of stlread().
Accepted Answer
More Answers (0)
Categories
Find more on STL (STereoLithography) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




