How to Import vertexes and facet from a STL "ASCII" file ?
古いコメントを表示
I'm searching for a script witch I can import the vertexes coordinate and the facet form an STL ASCII file. The only one I find for ASCCI and not for binary import only the vertexes and thus It's difficult to draw the surface after it.
Can somebody help ?
3 件のコメント
Geoff Hayes
2014 年 9 月 7 日
Have you seen Eric Trautmann's fast STL import from the MATLAB File Exchange? It seems to output more than just the vertex coordinates.
Pierrick Bersier
2014 年 10 月 1 日
The problem with FEX #30923 is that it can only read ASCII encoded files -- and only ones with windows-style line breaks. While those are its limitations, it doesn't actually test anything, so a binary encoded file, or an ASCII encoded file with unix line breaks will result in an unhelpful error message. It also has some other minor bugs which may silently cause problems depending on header content.
Internally, read_stl() from the IFIT toolbox (the accepted answer) uses the Trautmann decoder, but if it fails, it falls back to a different ASCII decoder. If the second decoder fails, it falls back to a binary decoder. It's kind of ridiculous that nowhere along the way is the encoding checked.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で STL (STereoLithography) についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!