Hi all,
I read the short description of the STLA Files (ASCII stereolithography files) but , Im sorry, I don't get how the facets/triangles are defined.
For Example in the example for the cube:
solid cube_corner
facet normal 0.0 -1.0 0.0
outer loop
vertex 0.0 0.0 0.0
vertex 1.0 0.0 0.0
vertex 0.0 0.0 1.0
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 0.0 0.0 0.0
vertex 0.0 1.0 0.0
vertex 1.0 0.0 0.0
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 0.0 0.0 0.0
vertex 0.0 0.0 1.0
vertex 0.0 1.0 0.0
endloop
endfacet
facet normal 0.577 0.577 0.577
outer loop
vertex 1.0 0.0 0.0
vertex 0.0 1.0 0.0
vertex 0.0 0.0 1.0
endloop
endfacet
endsolid
The first 'facet' describes a 3D triangle isn't it ? (0,0,0),(1,0,0),(0,0,1). Then what is the use the normal vector (0,-1,0) ? In this example, what would be the 3D coordinates of the 8 vertexes for this cube ?
Thanks