pub fn parse_stl_triangles(bytes: &[u8]) -> Result<StlTriangles, StlError>Expand description
Parse binary or ASCII STL bytes into their facets.
Binary structure is checked before the leading solid token because
binary STL headers are arbitrary and commonly begin with that word. A
binary file must hold exactly the bytes its facet count declares; a file
with no facets, or a facet normal or ASCII value that is not finite, is
refused. Corner finiteness of binary facets is the caller’s check.