How to Create faces from Vertex [X Y Z] co-ordiante for STL write ? without inbuilt STL command?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How to Create faces from Vertex [X Y Z] co-ordiante for STL write ? without inbuilt STL command?
0 comentarios
Respuestas (1)
KSSV
el 29 de Abr. de 2019
Read about delaunay and delaunayTriangulaion.
Once you have formed faces..you may use stlwrite from
2 comentarios
raouf takab
el 25 de Jul. de 2019
Editada: raouf takab
el 25 de Jul. de 2019
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.
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!