How to Create faces from Vertex [X Y Z] co-ordiante for STL write ? without inbuilt STL command?

조회 수: 5 (최근 30일)
How to Create faces from Vertex [X Y Z] co-ordiante for STL write ? without inbuilt STL command?

답변 (1개)

KSSV
KSSV 2019년 4월 29일
  댓글 수: 2
Selva Karna
Selva Karna 2019년 4월 30일
KSSV Thanks for reply. i did't looking for MATLAB inbuild commands, for Faces Creation from x y z , hard code of MATLAB i expecting can you sir any code?
This code not cleare to create Faces from x y z???
https://in.mathworks.com/matlabcentral/fileexchange/20922-stlwrite-write-ascii-or-binary-stl-files
raouf takab
raouf takab 2019년 7월 25일
편집: raouf takab 2019년 7월 25일
Answer by RiK:
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.

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

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by