Mesh Graph
MeshGraph is a halfedge data structure for representing triangle meshes.
This is heavily inspired by SMesh and OpenMesh.
Features
- Fast spatial queries using parry3d's Bvh
- High performance using slotmap
- Easy integration with Bevy game engine using the
bevy
Cargo feature - Good debugging using
rerun
Cargo feature to enable the Rerun integration - Best in class documentation with illustrations
Usage
use ;
// Create a new mesh
let mesh_graph = from;
// Get some vertex ID and its vertex node
let = mesh_graph.vertices.iter.next.unwrap;
// Iterate over all outgoing halfedges of the vertex
for halfedge_id in vertex.outgoing_halfedges
// Get the position of the vertex
let position = mesh_graph.positions;
Check out the crate freestyle-sculpt for a heavy duty example.