Skip to main content

read_stl

Function read_stl 

Source
pub fn read_stl(bytes: &[u8]) -> Result<Mesh, ReadStlError>
Expand description

Reads a binary or an ASCII STL, and welds its corners into a mesh.

A file is binary when its length is exactly what its triangle count says, even if its header starts with solid, as many binary headers do; else it is read as ASCII.