pub fn parse_stl_from_file<P: AsRef<Path>>(
filename: P,
) -> Result<Stl, ParseError>Expand description
Reads and parses an STL file.
Use parser::parse_stl_from_slice to parse data in memory.
§Errors
Fails if the file cannot be read or is not a valid STL file.
§Example
use ebustl_parser::parse_stl_from_file;
let stl = parse_stl_from_file("stls/test.stl").expect("Parse stl from file");
assert_eq!(13, stl.ttis.len());