manifold-csg 0.1.4

Safe Rust bindings to manifold3d — f64-precision CSG booleans, 2D cross-sections, extrusion, SDF, and OBJ I/O with Send safety and automatic memory management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Common types and error definitions.

/// Errors from manifold3d operations.
#[derive(Debug, thiserror::Error)]
pub enum CsgError {
    #[error("manifold3d status: {0:?}")]
    ManifoldStatus(manifold_csg_sys::ManifoldError),

    #[error("invalid input: {0}")]
    InvalidInput(String),

    #[error("empty mesh (no faces)")]
    EmptyMesh,
}