Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ProjectKML/fast-obj-rs
Rust bindings for the blazing fast obj parser fast_obj written in C
https://github.com/ProjectKML/fast-obj-rs
Last synced: 12 days ago
JSON representation
Rust bindings for the blazing fast obj parser fast_obj written in C
- Host: GitHub
- URL: https://github.com/ProjectKML/fast-obj-rs
- Owner: ProjectKML
- License: mit
- Created: 2022-01-17T00:20:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T11:51:44.000Z (over 1 year ago)
- Last Synced: 2024-05-16T08:15:28.135Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blazingly-fast - fast_obj_rs - Rust bindings for the blazing fast obj parser fast_obj written in C (Rust)
README
# fast-obj-rs
Rust bindings for the blazing obj parser fast_obj written in CExample:
```Rust
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);
});
}
```