Expand description
A simple .off
file parser.
§Usage
let off_string = r#"
OFF
3 1
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
4 0 1 2 3 255 0 0 # red
"#;
let mesh = off_rs::parse(
off_string,
Default::default() // optional ParserOptions
);
Modules§
Enums§
- Error
- Contains errors that occur during parsing.
Functions§
- from_
path - Parse a
crate::geometry::mesh::Mesh
from astd::path::Path
pointing to an.off
file. - parse
- Directly parse a
crate::geometry::mesh::Mesh
from anoff
string.
Type Aliases§
- Result
- This result may contain the parsed
crate::geometry::mesh::Mesh
or theself::Result
that occurred.