manifold3d
Safe Rust bindings to the manifold3d geometry kernel for constructive solid geometry (CSG).
This crate is a facade that re-exports manifold-csg.
Both crates expose the same API — use whichever name you prefer.
Migrating from 0.0.x
If you were using the original manifold3d 0.0.x (by @NickUfer, transferred
to this project), the API has changed significantly. See the
migration guide,
which is structured for AI-assisted migration.
Notable changes:
- Newtype wrappers (
PositiveF64,Point3,Vec3,Matrix4x3, ...) replaced by plain primitives (f64,[f64; 3],[f64; 12]) manifold3d-macroscrate removed — warp/set_properties callbacks are now closures- Method names aligned with the manifold3d C API (
new_cuboid→cube,convex_hull→hull, etc.) nalgebra_interopfeature renamed tonalgebra- No
exportfeature (upstream removedMeshIOin v3.4.0; use a dedicated mesh I/O crate)
Quick start
use ;
let cube = cube;
let hole = cylinder;
let result = &cube - &hole;
See also
- Full documentation
manifold-csg— same crate, different name- API coverage
License
Apache-2.0 OR MIT