Files
OneCAD-Simulation/crates/mesh/src/lib.rs
T
jyvikoandClaude Opus 5.5 6dda34e837 simplify: joining in modelcraft-mesh::join, shared label helper, run_script returns step outputs
Weld and face-to-face check move from the mesh.block command to
modelcraft_mesh::join (bounding-box-limited weld, grid-binned hanging-node
test), for node merging and imports to reuse. mesh.block and
mesh.tet.generate share fresh_labels. The block map evaluates each edge
curve once per lattice parameter; vector helpers come from vec3; tet10 and
hex20 mid-side nodes follow ElementKind::edges. Session::run_script returns
each step's output, which the oracle reads instead of its own loop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NmAttHhUZTokgPeEJia8sm
2026-10-13 21:42:19 -04:00

39 lines
1.2 KiB
Rust

//! Meshing: robust geometric predicates, boundary surface preparation, tetrahedral and
//! hexahedral volume meshing, and element quality.
//!
//! Every algorithm here is implemented from the papers cited in its module docs (see
//! `docs/meshing/literature.md`); no GPL-family code is read or used. Meshing decisions use exact
//! predicates, results are deterministic, and every iterative stage is bounded.
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
#![forbid(unsafe_code)]
pub mod block;
pub mod cdt;
pub mod delaunay;
pub mod join;
pub mod planar;
pub mod quad;
pub mod quality;
pub mod size;
pub mod surface;
mod vec3;
#[derive(Debug, Clone, PartialEq, thiserror::Error)]
pub enum Error {
#[error("invalid input: {0}")]
Invalid(String),
#[error("limit reached: {0}")]
Limit(String),
#[error("meshing failed: {0}")]
Failed(String),
/// The boundary surface has defects ([`surface::BoundarySurface::new`]).
#[error("invalid boundary surface: {0}")]
Surface(surface::Defects),
#[error(transparent)]
Model(#[from] modelcraft_model::Error),
}
pub type Result<T> = std::result::Result<T, Error>;
pub mod predicates;