docs.rs failed to build tobj-0.0.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
tobj-4.0.2
tobj - Tiny OBJ Loader
Tiny OBJ loader, inspired by Syoyo's excellent tinyobjloader. Aims to be a simple and lightweight option for loading OBJ files, simply returns two vecs containing loaded models and materials. All models are made of triangles, any quad faces in an OBJ file will be converted to two triangles.
Documentation
Rust doc can be found here.
Installation
Add the crate as a dependency in your Cargo.toml and you're all set!
Example
In this simple example we load the classic Cornell Box model that only defines positions and print out its attributes.
extern crate tobj;
use Path;
use tobj;
let cornell_box = load_obj;
assert!;
let = cornell_box.unwrap;
println!;
println!;
for in models.iter.enumerate
for in materials.iter.enumerate