diff --git a/Cargo.lock b/Cargo.lock index 01aa3c652..2d7acdb88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4253,6 +4253,7 @@ dependencies = [ "serde_json", "solidcraft-engine", "solidcraft-gpu", + "solidcraft-kernel", "solidcraft-mcp", ] diff --git a/apps/solidcraft-cli/Cargo.toml b/apps/solidcraft-cli/Cargo.toml index e5da188ff..e0c2523af 100644 --- a/apps/solidcraft-cli/Cargo.toml +++ b/apps/solidcraft-cli/Cargo.toml @@ -38,3 +38,5 @@ serde_json = { workspace = true } [dev-dependencies] # Snapshot tests decode the pictures to compare them with a tolerance. image = { workspace = true } +# Tests measure meshes at their own tolerances. +solidcraft-kernel = { workspace = true } diff --git a/crates/kernel/src/prism.rs b/crates/kernel/src/prism.rs index a22bce98f..4deb7ab5c 100644 --- a/crates/kernel/src/prism.rs +++ b/crates/kernel/src/prism.rs @@ -4,8 +4,7 @@ //! result's boundaries are the operands' curves, cut at their crossings and never refitted. //! Also the test of whether a record surface is a wall swept along a direction. -use solidcraft_geom::brep::Surface; -use solidcraft_geom::{Plane, Region2, Seg2, Vec2, Vec3}; +use solidcraft_geom::{Plane, Region2, Seg2, Vec2}; use crate::body::Body; use crate::{BoolOp, KernelError, Result}; @@ -111,6 +110,8 @@ struct Regions { #[cfg(feature = "smlib")] mod sheets { + use solidcraft_geom::Vec3; + use solidcraft_geom::brep::Surface; use solidcraft_geom::Loop2; use solidcraft_geom::brep::Loop; use solidcraft_smlib::{BooleanOp, Brep};