Why do Stereolithography (.STL) files require each triangle to have a normal vector?
问题 I'm trying to write some code to manipulate .STL ASCII files, and I'm trying to fully understand the file format. From what I've seen, the content of the "facet normal" line of each triangle has no effect on the triangle drawn. It also does not have any effect on which side of the triangle is considered the "outside", which is done by reversing the order of the vertices. This triangle facet normal 1 1 1 outer loop vertex -1 1 1 vertex 1 -1 1 vertex 1 1 -1 endloop endfacet is identical to this