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.

 채택된 답변

Rik
Rik 2019년 7월 25일
편집: Rik 2019년 7월 25일

1 개 추천

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.

댓글 수: 3

raouf takab
raouf takab 2019년 7월 25일
편집: raouf takab 2019년 7월 25일
Thank you for you reply.
In fact, my data is the coordinates of each vertex, and I wanted to understand the face to make the file?
Rik
Rik 2019년 7월 26일
The face variable describes how you need to connect the vertices to form your mesh, so without more information or assumptions it's impossible to tell what the face variable should be. You only have a point cloid, not a mesh.
Also, I'm puzzled why you accepted the other answer. It doesn't sound like it solved your problem
raouf takab
raouf takab 2019년 7월 26일
your right,
thank you Rik.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

jahanzaib ahmad
jahanzaib ahmad 2019년 7월 25일

0 개 추천

https://uk.mathworks.com/matlabcentral/fileexchange/20922-stlwrite-write-ascii-or-binary-stl-files?s_tid=srchtitle

댓글 수: 1

raouf takab
raouf takab 2019년 7월 25일
Thank you for you reply.
Has not explained the face, is the face the same as the normal vector?

댓글을 달려면 로그인하십시오.

카테고리

제품

질문:

2019년 7월 25일

댓글:

2019년 7월 26일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by