off-rs 1.0.0

A library for parsing .off mesh files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::Path;

use off_rs::parser::{color_format::ColorFormat, options::Options};

const PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/examples/cube.off");

fn main() {
    let mesh = off_rs::from_path(
        Path::new(PATH),
        Options {
            color_format: ColorFormat::RGBAFloat,
            ..Default::default()
        },
    );

    println!("{:#?}", mesh);
}