ASCII STL file starts with
solid 'nameOfFile'
Then contain the normal of the face, starting with facet normal
Next contain a keyword indicating the start of face vertex, outer loop
Next comes the three vertex, starting with vertex x y z
Vertices ends with endloop
Face ends with endfacet
Next face starts with facet normal
The end of the file is indicated by endsolid
Examples
Syntax
parseASCIISTL()
Parameters
Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/loading.js and open a pull request!
Related References
createModel
Load a 3d model from an OBJ or STL string.
isBinary
This function checks if the file is in ASCII format or in Binary format It is done by searching keyword solid at the start of the file.
loadModel
Loads a 3D model to create a p5.Geometry object.
matchDataViewAt
This function matches the query at the provided offset.