Crates.io | b3d |
lib.rs | b3d |
version | 0.1.9 |
source | src |
created_at | 2023-02-25 04:38:56.306189 |
updated_at | 2024-08-18 20:19:58.988878 |
description | A parser for the b3d extension |
homepage | https://github.com/DotWith/b3d/ |
repository | https://github.com/DotWith/b3d/ |
max_upload_size | |
id | 794159 |
size | 18,600 |
The Blitz3d game engine uses the .b3d
extension, which is provided by this crate.
let bytes = unimplemented!();
let b3d = b3d::B3D::read(bytes).unwrap();
let vertices = b3d.node.mesh.vertices.vertices;
let positions: Vec<_> = vertices.iter().map(|v| v.position).collect();
let normals: Vec<_> = vertices.iter().map(|v| v.normal).collect();
println!("Postions: {:#?}", positions);
println!("Normals: {:#?}", normals);