zesterer / wavefront

A Wavefront OBJ parser and utility crate
Apache License 2.0
3 stars 2 forks source link

Wavefront

crates.io crates.io

A Wavefront OBJ parser and utility crate.

[dependencies]
wavefront = "x.y.z"

Example

let model = wavefront::Obj::from_file("tests/ship.obj").unwrap();

for [a, b, c] in model.triangles() {
    // No index lookup required: wavefront handles this for you!
    println!("{:?} {:?} {:?}", a.position(), b.position(), c.position());
}

A parsec isn't a unit of time, Han

Features

Roadmap

Why not [alternative]?

wavefront was born of a general feeling that the API of existing OBJ parsers were either unnecessarily verbose or didn't properly handle the heirarchical structure of the OBJ format. wavefront aims to couple correct handling of the format's features with a clean, terse API that allows you to jump straight to the thing you want to do: rendering your model.

License

wavefront is distributed under either of:

at the disgression of the user.