avila-mesh
3D Mesh Library - 100% Rust
High-performance 3D mesh structures with PBR materials and primitive generators.
Features
- Vertex structures: Position, normal, UV, tangent, color
- Mesh operations: Merge, transform, recalculate normals, to_buffers()
- PBR Materials: Physically-based rendering with IFC material mapping
- Primitives: Cube, sphere, plane generators
- Scene management: Multi-mesh scenes with material library
Example
use ;
use Vec3;
// Create scene
let mut scene = new;
// Add cube
let mut cube = cube;
cube.material_id = Some;
scene.add_mesh;
// Add material
let material = from_ifc_material;
scene.add_material;
// Convert to GPU buffers
let buffers = scene.meshes.to_buffers;
println!;
IFC Integration
Seamlessly converts IFC materials to PBR:
let material = from_ifc_material;
// Automatically sets base_color, metallic, roughness
License
MIT OR Apache-2.0