Function parse_stl_from_file

Source
pub fn parse_stl_from_file<P: AsRef<Path>>(
    filename: P,
) -> Result<Stl, ParseError>
Expand description

Reads an STL file and parse it to a Stl struct.

Use crate::parser::parse_stl_from_slice to parse in memory data

ยงExample

use ebustl_parser::parse_stl_from_file;

let stl = parse_stl_from_file("/path/to/subtiltle.stl").expect("Parse stl from file");
println!("{:?}", stl);