| Crates.io | mesh-geometry |
| lib.rs | mesh-geometry |
| version | 0.4.0 |
| created_at | 2025-06-13 18:06:40.609239+00 |
| updated_at | 2025-06-13 18:06:40.609239+00 |
| description | High-performance geometry utilities for coastal/ocean FVM |
| homepage | |
| repository | https://github.com/your-org/mesh-geometry |
| max_upload_size | |
| id | 1711726 |
| size | 70,980 |
High-performance, no_std-compatible geometry utilities for spatially discrete meshes.
Point2, Point3, Vec2, Vec3 with arithmetic, dot/cross, and conversion utilities.no_std compatible (default: std enabled).cargo add mesh-geometry
use mesh_geometry::Point2;
let p = Point2::new(0.0, 1.0);
Compute the volume of a tetrahedron:
cargo run --example compute_cell_volumes
use mesh_geometry::{Point3, metrics::volume::tetrahedron_volume};
let a = Point3::new(0.0, 0.0, 0.0);
let b = Point3::new(1.0, 0.0, 0.0);
let c = Point3::new(0.0, 1.0, 0.0);
let d = Point3::new(0.0, 0.0, 1.0);
let vol = tetrahedron_volume(a, b, c, d);
assert!((vol - 1.0/6.0).abs() < 1e-12);
See more in examples/.
MIT OR Apache-2.0