cartan-remesh
Adaptive remeshing primitives for triangle meshes on Riemannian manifolds.
Part of the cartan workspace.
Overview
cartan-remesh provides local mesh modification operations for
Mesh<M, 3, 2> from cartan-dec. All operations are generic over
M: Manifold, and every mutation is recorded in a RemeshLog so that
downstream solvers can interpolate fields across topology changes.
Primitives:
split_edge, bisects an edge and inserts a new vertex.collapse_edge, removes a short edge by merging its endpoints.flip_edge, swaps the diagonal of two adjacent triangles.shift_vertex, repositions a vertex within its one-ring.
Higher-level tools:
length_cross_ratioand LCR conformal regularisation (spring energy and gradient) for maintaining mesh quality.adaptive_remesh, a driver that applies split/collapse/flip/shift passes with a curvature-CFL criterion controlled byRemeshConfig.
Example
use FlatMesh;
use Euclidean;
use ;
let mut mesh = unit_square_grid;
let config = default;
let log = adaptive_remesh;
println!;