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::Meshfrom astd::path::Pathpointing to an.offfile. - parse
- Directly parse a
crate::geometry::mesh::Meshfrom anoffstring.
Type Aliases§
- Result
- This result may contain the parsed
crate::geometry::mesh::Meshor theself::Resultthat occurred.