mesh-geometry
High-performance, no_std-compatible geometry utilities for spatially discrete meshes.
Features
- Core types:
Point2,Point3,Vec2,Vec3with arithmetic, dot/cross, and conversion utilities. - Cell metrics: triangle/quad area, centroids, tetrahedron/hexahedron volume, face normals, projected area.
- Geometry queries: point-in-polygon, ray-triangle intersection, point-to-cell distance.
- Advanced utilities: Jacobians, AABB, 3D affine transforms.
no_stdcompatible (default:stdenabled).- Comprehensive documentation and examples.
Installation
Quickstart
use Point2;
let p = new;
Examples
Compute the volume of a tetrahedron:
use ;
let a = new;
let b = new;
let c = new;
let d = new;
let vol = tetrahedron_volume;
assert!;
See more in examples/.
Documentation
CI & Contributing
- CI: GitHub Actions
- Issues and PRs welcome!
License
MIT OR Apache-2.0