Skip to content

Rust bindings for the blazing fast obj parser fast_obj written in C

License

Notifications You must be signed in to change notification settings

ProjectKML/fast-obj-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fast-obj-rs

Rust bindings for the blazing obj parser fast_obj written in C

Example:

use fast_obj_rs::Mesh;

fn main() {
    let mesh = Mesh::new("dragon.obj").unwrap();

    mesh.positions().iter().for_each(|position| {
        println!("Position: {}", position);
    });

    mesh.texcoords().iter().for_each(|tex_coord| {
        println!("Tex Coord: {}", tex_coord);
    });

    mesh.normals().iter().for_each(|normal| {
        println!("Normal: {}", normal);
    });
}

About

Rust bindings for the blazing fast obj parser fast_obj written in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages