View/Open - Scholarly Commons Home
View/Open - Scholarly Commons Home
View/Open - Scholarly Commons Home
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
A STL file is a triangular representation of a 3D object. The surface of an object is<br />
broken into a logical series of triangles (see illustration at right). Each triangle is<br />
uniquely defined by its normal and three points representing its vertices.<br />
The file begins with a solid record, (which can include a name for the object), and<br />
ends with an endsolid record. Each triangle begins with a facet record and ends with<br />
an endfacet record. The normal vector, if given, is included as part of the facet<br />
record, and is identified by the normal keyword. The normal vector should have unit<br />
length. The three vertices of the triangle are delimited by outer loop and endloop<br />
records. Each vertex is described on a vertex record that lists its (X,Y,Z) coordinates.<br />
An ASCII STL file for a four-face figure that's a slice of a cube would be:<br />
solid cube_corner<br />
facet normal 0.0 -1.0 0.0<br />
outer loop<br />
vertex 0.0 0.0 0.0<br />
vertex 1.0 0.0 0.0<br />
vertex 0.0 0.0 1.0<br />
endloop<br />
endfacet<br />
facet normal 0.0 0.0 -1.0<br />
outer loop<br />
vertex 0.0 0.0 0.0<br />
vertex 0.0 1.0 0.0<br />
vertex 1.0 0.0 0.0<br />
endloop<br />
endfacet<br />
facet normal 0.0 0.0 -1.0<br />
outer loop<br />
vertex 0.0 0.0 0.0<br />
vertex 0.0 0.0 1.0<br />
vertex 0.0 1.0 0.0<br />
endloop<br />
47