Question about STL file
3 ビュー (過去 30 日間)
表示 古いコメント
Hello
I have a vector file as xyz How can I calculate normal vector? How can I create a stl file?.
what is the facet in stl file?
Thanks.

0 件のコメント
採用された回答
Rik
2019 年 7 月 25 日
編集済み: Rik
2019 年 7 月 25 日
An stl file has two parts. One part contains triplets of vertex IDs, and the other part contains the xyz coordinates of each vertex. The triplets tell you the three corners of a face of your mesh.
In principle there can be more than three IDs, but triangular meshes are the most usual.
The data you have seems to only be the faces array, although maybe the vertices array is hidden in the last part of your array.
Also, the faces array describes the vertices, not the normal vector of that face.
その他の回答 (1 件)
jahanzaib ahmad
2019 年 7 月 25 日
https://uk.mathworks.com/matlabcentral/fileexchange/20922-stlwrite-write-ascii-or-binary-stl-files?s_tid=srchtitle
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!