Skip to main content

read_stl

Function read_stl 

Source
pub fn read_stl(file: &[u8]) -> GeopResult<(Vec<Vector3>, Vec<[usize; 3]>)>
Expand description

The corners and triangles of the STL file file, corners at the very same coordinates one. Binary where its length is that of a binary STL of as many triangles as its header says — 84 bytes and 50 a triangle, which a text file starting solid (as some binary headers do too) all but never is — and text (ASCII STL) otherwise. The facets’ normals are not read: the order of the corners says which way a triangle faces.