Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

Wave 443/509: Kernel tests, fillet rig: a chamfer past its rim builds, cut by what lies past it (and 3 more)

jyvikod263bf1e90ae
diff --git a/crates/engine/src/cmd/contact_sweep.rs b/crates/engine/src/cmd/contact_sweep.rs
index d585349189..3b7dcdf926 100644
--- a/crates/engine/src/cmd/contact_sweep.rs
+++ b/crates/engine/src/cmd/contact_sweep.rs
@@ -1,5 +1,8 @@
-//! Bounded, chronological checks of a joint trajectory. This samples tessellated geometry;
-//! it is deliberately not advertised as exact continuous collision detection.
+//! Bounded, chronological checks of a joint trajectory. The motion is sampled, so this is not
+//! continuous collision detection. A joint drive decides on the exact bodies whether they pass
+//! into each other at a sample ([`ContactGeometry::overlaps`]) and closes in on where they first
+//! touch through placements known to be clear ([`ContactGeometry::gap`]); gaps and interference
+//! depths are measured on the bodies' contact meshes.
use std::cell::Cell;
use std::collections::{BTreeMap, BTreeSet, HashMap};
use std::sync::Arc;
@@ -16,6 +19,9 @@ const MAX_PLACEMENTS: usize = 4096;
const MAX_BODIES: usize = 256;
const MAX_TRIANGLES: usize = 50_000;
const MAX_WORK: usize = 50_000_000;
+/// Most exact intersections one joint drive works out: one per pair of bodies whose exact boxes
+/// meet, at each sample and bisection step.
+const MAX_INTERSECTIONS: usize = 2048;
fn limit(message: &str) -> crate::EngineError {
bad("contact.sweep", message)
@@ -25,6 +31,9 @@ fn limit(message: &str) -> crate::EngineError {
struct CachedBody {
path: Vec<u64>,
offset: Mat,
+ /// The body itself, for the exact checks, and its exact box in its own frame.
+ body: solidcraft_kernel::Body,
+ exact_box: Aabb3,
mesh: Arc<Mesh>,
size: f64,
/// How far its mesh may stray from its faces: 0 when every face is flat (the mesh is the
@@ -94,6 +103,14 @@ fn contact_mesh(body: &solidcraft_doc::ModelBody) -> Result<ContactMesh> {
/// A member of a contact set: (occurrence id, name).
pub(super) type Member = (u64, String);
+/// Two set members whose bodies pass into each other: their names, and the bodies (indices in
+/// [`ContactGeometry`]) that do.
+pub(super) struct Overlap {
+ pub(super) a: String,
+ pub(super) b: String,
+ bodies: (usize, usize),
+}
+
pub(super) struct ContactGeometry {
bodies: Vec<CachedBody>,
/// Body indices, and the set members (occurrence id, name) they are under.
@@ -171,6 +188,8 @@ impl ContactGeometry {
out.bodies.push(CachedBody {
path: path.clone(),
offset: s.doc.model_body_offset(body).copied().unwrap_or(IDENTITY),
+ body: body.body.clone(),
+ exact_box: body.body.exact_bounds()?,
mesh,
size: body.body.size(),
chord,
@@ -301,8 +320,119 @@ impl ContactGeometry {
.collect()
}
- pub(super) fn first_hit(&self, s: &Session, work: &mut usize) -> Result<Option<(String, String, f64)>> {
- Ok(self.hits(s, work, MAX_WORK, false)?.into_iter().next().map(|(a, b, depth)| (a.1, b.1, depth)))
+ /// The pairs of bodies of set members that pass into each other in `s` (every pair, or the
+ /// first found when `all` is false), decided on the exact bodies: their intersection holds
+ /// volume. Bodies that only touch, such as a cam and its follower, share none. Only bodies
+ /// whose exact boxes meet are intersected; `intersections` counts them, refused past the
+ /// drive's budget.
+ pub(super) fn overlaps(&self, s: &Session, intersections: &mut usize, all: bool) -> Result<Vec<Overlap>> {
+ let frames = self.frames(s)?;
+ let boxes: Vec<Aabb3> = self.bodies.iter().zip(&frames).map(|(b, f)| placed_box(&b.exact_box, f)).collect();
+ let mut placed: Vec<Option<solidcraft_kernel::Body>> = vec![None; self.bodies.len()];
+ let mut out = Vec::new();
+ for (a, b, oa, ob) in &self.pairs {
+ let (Some(xa), Some(xb)) = (boxes.get(*a), boxes.get(*b)) else {
+ return Err(limit("invalid contact geometry pair"));
+ };
+ if !xa.meets(xb) {
+ continue;
+ }
+ *intersections = intersections.saturating_add(1);
+ if *intersections > MAX_INTERSECTIONS {
+ return Err(limit("motion exceeds contact sweep intersection budget; simplify the contact set or use smaller increments"));
+ }
+ let undecided = |e: &dyn std::fmt::Display| {
+ bad("contact.sweep", format!("whether {} and {} pass into each other could not be decided ({e})", oa.1, ob.1))
+ };
+ let (pa, pb) = (self.placed_body(*a, &frames, &mut placed)?, self.placed_body(*b, &frames, &mut placed)?);
+ let Some(shared) = solidcraft_kernel::boolean(&pa, &pb, solidcraft_kernel::BoolOp::Intersect).map_err(|e| undecided(&e))? else {
+ continue;
+ };
+ if solidcraft_kernel::measure_mass(&shared).map_err(|e| undecided(&e))?.volume > 0.0 {
+ out.push(Overlap { a: oa.1.clone(), b: ob.1.clone(), bodies: (*a, *b) });
+ if !all {
+ break;
+ }
+ }
+ }
+ Ok(out)
+ }
+
+ /// The least gap between the bodies of `pairs` in `s`, where they are clear of each other: their
+ /// exact distance ([`solidcraft_kernel::body_distance`]), less the meshes' chord tolerances
+ /// where it could only be measured on the meshes, so the gap is never more than the bodies'.
+ /// Between bodies that pass into each other it means nothing (a distance does not tell them
+ /// from touching ones): it is asked only of placements known to be clear.
+ pub(super) fn gap(&self, s: &Session, pairs: &[Overlap]) -> Result<f64> {
+ let frames = self.frames(s)?;
+ let mut placed: Vec<Option<solidcraft_kernel::Body>> = vec![None; self.bodies.len()];
+ let mut least = f64::INFINITY;
+ for pair in pairs {
+ let (a, b) = pair.bodies;
+ let (Some(ca), Some(cb), Some(fa), Some(fb)) = (self.bodies.get(a), self.bodies.get(b), frames.get(a), frames.get(b)) else {
+ return Err(limit("invalid contact geometry pair"));
+ };
+ let (pa, pb) = (self.placed_body(a, &frames, &mut placed)?, self.placed_body(b, &frames, &mut placed)?);
+ let mesh = |c: &CachedBody, f: &Mat| Mesh {
+ positions: c.mesh.positions.iter().map(|p| apply_point(f, *p)).collect(),
+ triangles: c.mesh.triangles.clone(),
+ ..Mesh::default()
+ };
+ let (ma, mb) = (mesh(ca, fa), mesh(cb, fb));
+ let (sa, sb) = (solidcraft_kernel::DistanceShape::new(&pa, &ma, ca.chord), solidcraft_kernel::DistanceShape::new(&pb, &mb, cb.chord));
+ let Some(d) = solidcraft_kernel::body_distance(&sa, &sb, f64::INFINITY)? else {
+ return Err(limit("invalid contact geometry pair"));
+ };
+ let gap = if d.exact { d.distance } else { d.distance - ca.chord - cb.chord };
+ least = least.min(gap.max(0.0));
+ }
+ Ok(least)
+ }
+
+ /// The furthest a point of the bodies of `pairs` moves toward the other body of its pair
+ /// from where `from` ([`ContactGeometry::frames`]) placed them to where `to` has them
+ /// (bounded by the two bodies' own furthest moves, each by the corners of its exact box,
+ /// which a rigid move takes furthest).
+ pub(super) fn pair_travel(&self, from: &[Mat], to: &Session, pairs: &[Overlap]) -> Result<f64> {
+ let moved = |i: usize| -> Result<f64> {
+ let (Some(body), Some(fa)) = (self.bodies.get(i), from.get(i)) else {
+ return Err(limit("invalid contact geometry pair"));
+ };
+ let fb = Self::frame(body, to)?;
+ let local = &body.exact_box;
+ let mut most = 0.0_f64;
+ for c in 0..8 {
+ let pick = |bit: usize, lo: f64, hi: f64| if c & bit == 0 { lo } else { hi };
+ let corner = Vec3::new(pick(1, local.min.x, local.max.x), pick(2, local.min.y, local.max.y), pick(4, local.min.z, local.max.z));
+ most = most.max(apply_point(fa, corner).dist(apply_point(&fb, corner)));
+ }
+ Ok(most)
+ };
+ let mut most = 0.0_f64;
+ for pair in pairs {
+ most = most.max(moved(pair.bodies.0)? + moved(pair.bodies.1)?);
+ }
+ Ok(most)
+ }
+
+ /// Where `s` places each body.
+ pub(super) fn frames(&self, s: &Session) -> Result<Vec<Mat>> {
+ self.bodies.iter().map(|b| Self::frame(b, s)).collect()
+ }
+
+ /// Body `i` placed by `frames`, made once per check.
+ fn placed_body(&self, i: usize, frames: &[Mat], placed: &mut [Option<solidcraft_kernel::Body>]) -> Result<solidcraft_kernel::Body> {
+ if let Some(Some(done)) = placed.get(i) {
+ return Ok(done.clone());
+ }
+ let (Some(body), Some(frame)) = (self.bodies.get(i), frames.get(i)) else {
+ return Err(limit("invalid contact geometry pair"));
+ };
+ let moved = solidcraft_kernel::transform_matrix(&body.body, *frame)?;
+ if let Some(slot) = placed.get_mut(i) {
+ *slot = Some(moved.clone());
+ }
+ Ok(moved)
}
/// The pairs of set members whose bodies pass through each other in `s`, with how deep the
@@ -431,6 +561,20 @@ impl ContactGeometry {
}
}
+/// The box holding `local` placed by `frame` (its corners' box: a rigid motion keeps the box's
+/// contents inside it).
+fn placed_box(local: &Aabb3, frame: &Mat) -> Aabb3 {
+ let mut world = Aabb3::EMPTY;
+ for c in 0..8 {
+ let pick = |bit: usize, lo: f64, hi: f64| if c & bit == 0 { lo } else { hi };
+ world.add(apply_point(
+ frame,
+ Vec3::new(pick(1, local.min.x, local.max.x), pick(2, local.min.y, local.max.y), pick(4, local.min.z, local.max.z)),
+ ));
+ }
+ world
+}
+
fn limit_error(message: &str) -> crate::EngineError {
limit(message)
}
diff --git a/crates/engine/src/cmd/motion.rs b/crates/engine/src/cmd/motion.rs
index 69955852ca..5de79b5bf1 100644
--- a/crates/engine/src/cmd/motion.rs
+++ b/crates/engine/src/cmd/motion.rs
@@ -404,30 +404,62 @@ fn drive_with_contact(s: &mut Session, want: &[(u64, Vec<f64>)], given: &BTreeSe
let mut end = s.scratch();
set(&mut end, 1.0);
let samples = cache.samples(s, &end)?;
- let mut work = 0;
+ let mut intersections = 0;
set(s, 0.0);
// Keep the existing recovery behaviour: an initially overlapping assembly may move
// out of its invalid placement. Sweeps constrain motions that start collision-free.
- if cache.first_hit(s, &mut work)?.is_none() {
+ if cache.overlaps(s, &mut intersections, false)?.is_empty() {
let mut lo = 0.0;
let mut bracket = None;
for sample in 1..=samples {
let hi = sample as f64 / samples as f64;
set(s, hi);
- if let Some(hit) = cache.first_hit(s, &mut work)? {
- bracket = Some((lo, hi, hit));
+ let hits = cache.overlaps(s, &mut intersections, true)?;
+ if !hits.is_empty() {
+ bracket = Some((lo, hi, hits));
break;
}
lo = hi;
}
- if let Some((mut lo, mut hi, hit)) = bracket {
- for _ in 0..14 {
- let mid = (lo + hi) / 2.0;
- set(s, mid);
- if cache.first_hit(s, &mut work)?.is_none() { lo = mid } else { hi = mid }
+ // Where the bodies found passing into each other first touch, closed in on from the
+ // clear side (conservative advancement): from a clear placement, a move in which no
+ // point of a pair goes further than the pair's gap keeps it clear. Only clear
+ // placements are measured, so no intersection is asked to tell touching bodies from
+ // overlapping ones within its tolerance.
+ if let Some((lo, hi, hits)) = bracket {
+ let touch = 1e-9 * cache.scale();
+ let mut t = lo;
+ set(s, t);
+ for _ in 0..MAX_ADVANCES {
+ let gap = cache.gap(s, &hits)?;
+ if gap <= touch {
+ break;
+ }
+ let from = cache.frames(s)?;
+ // The furthest step whose move stays within the gap: guessed from the move to
+ // `hi` (nearly proportional over a sample), then halved until it does.
+ set(s, hi);
+ let whole = cache.pair_travel(&from, s, &hits)?;
+ let mut step = if whole > 0.0 { (hi - t) * (0.5 * gap / whole).min(1.0) } else { hi - t };
+ let mut next = None;
+ for _ in 0..64 {
+ set(s, t + step);
+ if cache.pair_travel(&from, s, &hits)? < gap {
+ next = Some(t + step);
+ break;
+ }
+ step *= 0.5;
+ }
+ match next {
+ Some(n) if n > t => t = n,
+ _ => break,
+ }
+ set(s, t);
}
+ let lo = t;
sol = set(s, lo);
- stopped = Some(json!({"a": hit.0, "b": hit.1, "fraction": lo}));
+ let (a, b) = hits.first().map(|h| (h.a.clone(), h.b.clone())).unwrap_or_default();
+ stopped = Some(json!({"a": a, "b": b, "fraction": lo}));
} else {
sol = set(s, 1.0);
}
@@ -458,6 +490,10 @@ fn drive_with_contact(s: &mut Session, want: &[(u64, Vec<f64>)], given: &BTreeSe
Ok((out, sol))
}
+/// Most steps a joint drive takes closing in on a contact. Each moves the pair by up to half its
+/// gap; past the last, the drive stops at the last clear placement, short of the touch.
+const MAX_ADVANCES: usize = 200;
+
/// Drive one joint (joint.drive), honouring contact sets.
pub fn drive_joint(s: &mut Session, id: u64, q: Vec<f64>, given: usize) -> Result<Value> {
let given = (0..given.min(q.len())).map(|i| (id, i)).collect();
diff --git a/crates/kernel/src/blend_corner.rs b/crates/kernel/src/blend_corner.rs
index 9b8e6ac131..18b6738058 100644
--- a/crates/kernel/src/blend_corner.rs
+++ b/crates/kernel/src/blend_corner.rs
@@ -298,12 +298,19 @@ mod tests {
}
}
- /// A chamfer of a basin's rim loop whose leg would run off the 1 mm rim over the slab's front
- /// edge is refused as too large, the kind a fit can reduce. (The largest size that fits is
- /// the doc layer's to name; it and the loop's blends that fit, with their exact mitred
- /// volumes, are graded by the rig's fillets/1080-*-equal-slope-basin-* cases.)
+ /// A chamfer 2 of a basin's rim loop (walls all sloping 10 over 20, the front rim 1 mm wide)
+ /// whose front leg runs off the rim over the slab's front edge builds, cut by the front face
+ /// (the owner's ruling of 2026-10-30, d7: a chamfer that reaches or runs past a rim builds).
+ /// Sliced at depth t below the top, each chamfer's strip beside its wall is
+ /// w(t) = d (1 − t/δ) wide, δ = d / √(1 + k²) with k = 1/2 the walls' run over drop; the four
+ /// meet in mitres at the rim's corners, so the section removed is the pocket's rectangle at t,
+ /// [20 + t/2, 80 − t/2] × [1 + t/2, 50 − t/2], grown by w(t) on every side and clipped to the
+ /// slab's front face y >= 0, less that rectangle. Its area is quadratic in t between δ and
+ /// where the front strip's edge 1 + t/2 − w(t) crosses y = 0, so Simpson's rule is exact on
+ /// each piece: 375.673069 taken from V0 = 140333.333333 (the prismatoid), 139957.660264.
#[test]
- fn a_rim_loop_chamfer_running_off_its_rim_is_refused() {
+ #[ignore = "fails until SMLib builds the cliff overflow of a blended loop: CloseRemovalRegion refuses it (SM_FILERR_NO_ROOM, its fillet boundary closes on one face)"]
+ fn a_rim_loop_chamfer_running_off_its_rim_builds() {
use solidcraft_geom::{Loop2, Plane, Vec2};
let rectangle = |x0, y0, x1, y1| Loop2::polygon(&[Vec2::new(x0, y0), Vec2::new(x1, y0), Vec2::new(x1, y1), Vec2::new(x0, y1)]);
let slab = box_solid(Vec3::ZERO, Vec3::new(100.0, 60.0, 30.0)).unwrap();
@@ -312,10 +319,25 @@ mod tests {
.unwrap();
let basin = crate::boolean(&slab, &pocket, crate::BoolOp::Cut).unwrap().unwrap();
let picks = [Vec3::new(50.0, 1.0, 30.0), Vec3::new(80.0, 27.0, 30.0), Vec3::new(50.0, 50.0, 30.0), Vec3::new(20.0, 27.0, 30.0)];
- match crate::chamfer(&basin, &picks, 2.0) {
- Err(KernelError::TooLarge(_)) => {}
- Err(e) => panic!("refused, but not as too large: {e}"),
- Ok(_) => panic!("a chamfer whose leg runs off the rim was built"),
- }
+ let (d, k) = (2.0_f64, 0.5_f64);
+ let delta = d / (1.0 + k * k).sqrt();
+ let area = |t: f64| {
+ let w = d * (1.0 - t / delta);
+ let (x0, x1, y0, y1) = (20.0 + k * t, 80.0 - k * t, 1.0 + k * t, 50.0 - k * t);
+ (x1 - x0 + 2.0 * w) * (y1 + w - (y0 - w).max(0.0)) - (x1 - x0) * (y1 - y0)
+ };
+ // 1 + k t − d (1 − t/δ) = 0.
+ let crossing = (d - 1.0) / (k + d / delta);
+ let removed: f64 = [(0.0, crossing), (crossing, delta)]
+ .iter()
+ .map(|&(a, b)| (b - a) / 6.0 * (area(a) + 4.0 * area(0.5 * (a + b)) + area(b)))
+ .sum();
+ assert!((removed - 375.673069).abs() < 1e-6, "{removed}");
+ let before = crate::measure(&basin).unwrap().volume;
+ assert!((before - 140333.333333).abs() < 1e-5, "{before}");
+ let result = crate::chamfer(&basin, &picks, d).unwrap_or_else(|e| panic!("{e}"));
+ assert!(result.validity().is_empty(), "{:?}", result.validity());
+ let v = crate::measure(&result).unwrap().volume;
+ assert!((v - (before - removed)).abs() < 1e-6 * before, "{v} vs {}", before - removed);
}
}
diff --git a/crates/kernel/src/tests.rs b/crates/kernel/src/tests.rs
index ab81cc996a..37376d9074 100644
--- a/crates/kernel/src/tests.rs
+++ b/crates/kernel/src/tests.rs
@@ -1104,31 +1104,79 @@ fn chamfer_sloped_basin_rim() {
assert!(mesh.contains(Vec3::new(50.0, 3.5, 28.0)));
}
-/// A chamfer wider than a basin's thin rim (`chamfer_sloped_basin_rim`'s basin with the rim
-/// `margin` wide at the top) would run its leg off the rim's top, over the slab's front edge; as
-/// wide as the rim it would use the rim's top up. Both are refused as too large, the kind a fit
-/// can reduce, the body unchanged (the owner's blend-overflow ruling, 2026-10-30). The largest
-/// size that fits is named by the doc layer (`with_largest_fit`) and graded, with the chamfers
-/// that fit, by the rig's fillets/1080-chamfer-sloped-basin-* cases.
-#[test]
-fn chamfer_wider_than_sloped_basin_rim_is_refused() {
+/// `chamfer_sloped_basin_rim`'s basin with its front rim `margin` wide at the top.
+fn sloped_basin(margin: f64) -> Body {
let rectangle = |x0, y0, x1, y1| Loop2::polygon(&[Vec2::new(x0, y0), Vec2::new(x1, y0), Vec2::new(x1, y1), Vec2::new(x0, y1)]);
- let basin = |margin: f64| {
- let slab = box_solid(Vec3::ZERO, Vec3::new(100.0, 60.0, 30.0)).unwrap();
- let pocket =
- loft(&[(Plane::XY.offset(30.0), rectangle(20.0, margin, 80.0, 50.0)), (Plane::XY.offset(10.0), rectangle(30.0, 20.0, 70.0, 40.0))])
- .unwrap();
- boolean(&slab, &pocket, BoolOp::Cut).unwrap().unwrap()
+ let slab = box_solid(Vec3::ZERO, Vec3::new(100.0, 60.0, 30.0)).unwrap();
+ let pocket =
+ loft(&[(Plane::XY.offset(30.0), rectangle(20.0, margin, 80.0, 50.0)), (Plane::XY.offset(10.0), rectangle(30.0, 20.0, 70.0, 40.0))])
+ .unwrap();
+ boolean(&slab, &pocket, BoolOp::Cut).unwrap().unwrap()
+}
+
+/// What an equal-distance chamfer `d` of [`sloped_basin`]'s rim edge at y = `margin` takes, built
+/// as if the top went on past the slab's front face y = 0 and then cut by it (the owner's ruling
+/// of 2026-10-30, d7: a chamfer that reaches or runs past a rim builds). Its section in (y, z) is
+/// the triangle of the edge (margin, 30), the top's contact (margin − d, 30) and the wall's
+/// contact d down the wall towards (20, 10) (run 20 − margin over the drop 20), clipped to
+/// y >= 0. At height z it runs between the sloped end walls x = 20 + (30 − z)/2 and
+/// 80 − (30 − z)/2 (planar, x by z alone), which cut it, so its length there is 30 + z: it takes
+/// ∬ (30 + z) dy dz over the clipped section, area · 30 + ∬ z, both exact by the shoelace sums
+/// over the polygon (the first moment Σ (z₀ + z₁)(y₀ z₁ − y₁ z₀) / 6).
+fn sloped_basin_rim_chamfer_removed(margin: f64, d: f64) -> f64 {
+ let len = ((20.0 - margin).powi(2) + 400.0).sqrt();
+ let (e, t) = ((margin, 30.0), (margin - d, 30.0));
+ let w = (margin + d * (20.0 - margin) / len, 30.0 - d * 20.0 / len);
+ let poly = if t.0 >= 0.0 {
+ vec![e, t, w]
+ } else {
+ let s = -t.0 / (w.0 - t.0);
+ vec![e, (0.0, 30.0), (0.0, t.1 + s * (w.1 - t.1)), w]
};
- for (margin, distance) in [(1.0, 2.0), (1.0, 3.0), (0.5, 4.0), (0.5, 0.5), (1.0, 1.0)] {
- let b = basin(margin);
- let before = measure(&b).unwrap().volume;
- match chamfer(&b, &[Vec3::new(50.0, margin, 30.0)], distance) {
- Err(KernelError::TooLarge(_)) => {}
- Err(e) => panic!("{margin}, {distance}: refused, but not as too large: {e}"),
- Ok(_) => panic!("{margin}, {distance}: a chamfer whose leg runs off the rim was built"),
- }
- assert_eq!(measure(&b).unwrap().volume, before);
+ let (mut area, mut moment) = (0.0, 0.0);
+ for i in 0..poly.len() {
+ let ((y0, z0), (y1, z1)) = (poly[i], poly[(i + 1) % poly.len()]);
+ let c = y0 * z1 - y1 * z0;
+ area += c / 2.0;
+ moment += (z0 + z1) * c / 6.0;
+ }
+ area.abs() * 30.0 + moment.abs()
+}
+
+/// A chamfer as wide as a basin's thin rim (`chamfer_sloped_basin_rim`'s basin with the rim
+/// `margin` wide at the top) uses the rim's top up, its leg ending on the slab's front edge:
+/// it builds (the owner's ruling of 2026-10-30, d7), taking the whole triangle
+/// ([`sloped_basin_rim_chamfer_removed`]: unclipped, d · drop / 2 · (60 − drop / 3) with
+/// drop = 20 d / √((20 − margin)² + 400)): 21.662379 at 1 on the 1 mm rim, 5.359321 at 0.5 on
+/// the 0.5 mm one.
+#[test]
+fn chamfer_as_wide_as_sloped_basin_rim_builds() {
+ // The formula reads the fitting chamfer of `chamfer_sloped_basin_rim` as that test does.
+ let drop = 2.0 / (1.0 + 0.8f64.powi(2)).sqrt();
+ assert!(rel(sloped_basin_rim_chamfer_removed(4.0, 2.0), drop * (60.0 - drop / 3.0)) < 1e-12);
+ for margin in [0.5, 1.0] {
+ let b = sloped_basin(margin);
+ let made = chamfer(&b, &[Vec3::new(50.0, margin, 30.0)], margin).unwrap_or_else(|e| panic!("{margin}: {e}"));
+ assert!(made.validity().is_empty(), "{margin}: {:?}", made.validity());
+ let want = measure(&b).unwrap().volume - sloped_basin_rim_chamfer_removed(margin, margin);
+ assert!(rel(measure(&made).unwrap().volume, want) < 1e-8, "{margin}: {} vs {want}", measure(&made).unwrap().volume);
+ }
+}
+
+/// A chamfer wider than a basin's thin rim runs its leg off the rim's top, over the slab's front
+/// edge (a cliff): it builds as if the top went on and is cut by the front face (the owner's
+/// ruling of 2026-10-30, d7), lowering the front face where it crosses it
+/// ([`sloped_basin_rim_chamfer_removed`], clipped to y >= 0): 73.450475 for 2 and 142.112912 for
+/// 3 on the 1 mm rim, 184.526613 for 4 on the 0.5 mm one.
+#[test]
+#[ignore = "fails until SMLib builds the cliff overflow: CloseRemovalRegion refuses it (SM_FILERR_NO_ROOM, its fillet boundary along the side edge's line lies on the surfaces of two faces)"]
+fn chamfer_wider_than_sloped_basin_rim_builds() {
+ for (margin, distance) in [(1.0, 2.0), (1.0, 3.0), (0.5, 4.0)] {
+ let b = sloped_basin(margin);
+ let made = chamfer(&b, &[Vec3::new(50.0, margin, 30.0)], distance).unwrap_or_else(|e| panic!("{margin}, {distance}: {e}"));
+ assert!(made.validity().is_empty(), "{margin}, {distance}: {:?}", made.validity());
+ let want = measure(&b).unwrap().volume - sloped_basin_rim_chamfer_removed(margin, distance);
+ assert!(rel(measure(&made).unwrap().volume, want) < 1e-8, "{margin}, {distance}: {} vs {want}", measure(&made).unwrap().volume);
}
}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2-refused/expected.json b/tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2-refused/expected.json
deleted file mode 100644
index 8c2e709891..0000000000
--- a/tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2-refused/expected.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#1080"
- ],
- "what": "all four top rim edges of a basin whose walls all slope 10 over 20, its front rim 1 mm wide, chamfered 2: the front chamfer's leg runs off the rim, so it is refused, naming the largest distance that fits",
- "source": "analytic",
- "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 11)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 140333.333333. The front chamfer's leg on the 1 mm rim would reach y = -1, over the slab's front face: refused (the owner's ruling of 2026-10-30).",
- "outcome": "refused",
- "refusal": "the largest distance that fits is"
-}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2/expected.json b/tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2/expected.json
new file mode 100644
index 0000000000..7130c90bc9
--- /dev/null
+++ b/tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2/expected.json
@@ -0,0 +1,25 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#1080"
+ ],
+ "what": "all four top rim edges of a basin whose walls all slope 10 over 20, its front rim 1 mm wide, chamfered 2: the front chamfer's leg runs off the rim over the slab's front face (a cliff), so the loop builds as if the top went on, mitred at the rim's corners, and is cut by the front face",
+ "source": "analytic",
+ "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 11)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 140333.333333. Sliced at depth t below the top, each picked edge's chamfer is a strip beside its wall w(t) = d (1 - t/delta) wide, delta = d / sqrt(1 + k^2), k the wall's run over its drop; picked neighbours meet in mitres (each runs on past the corner and the quadrant beyond both walls loses what both take) and an unpicked neighbour's wall, extended, ends it, so the section removed is the pocket's rectangle at t grown by w(t) on each picked side, clipped to the slab's front face y >= 0 (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds), less the pocket's rectangle. That area is quadratic in t between the breakpoints (each delta, and where the front strip's edge y0 + k t - w(t) crosses y = 0), so Simpson's rule on each piece is exact. Removed 375.673069. V = 139957.660264",
+ "body_count": 1,
+ "volume_mm3": 139957.66026433042,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 100,
+ 60,
+ 30
+ ]
+ },
+ "tolerance": {
+ "rel": 1e-06
+ }
+}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2-refused/recipe.json b/tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2-refused/recipe.json
rename to tests/kernel-cases/fillets/1080-chamfer-equal-slope-basin-1-mm-rim-loop-2/recipe.json
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim-refused/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim-refused/expected.json
deleted file mode 100644
index f8c0a86816..0000000000
--- a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim-refused/expected.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#1080"
- ],
- "what": "the 0.5 mm front rim of a sloped basin's top chamfered 4: its leg on the top runs off the rim over the slab's front face, so it is refused, naming the largest distance that fits",
- "source": "analytic",
- "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 0.5)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144266.666667. The chamfer's leg on the rim's top (0.5 mm wide) would reach y = -3.5, off the rim and over the slab's front face y = 0, lowering that face: the owner's ruling of 2026-10-30 refuses a chamfer whose leg runs off the face beside its edge, naming the largest distance that fits.",
- "outcome": "refused",
- "refusal": "the largest distance that fits is"
-}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim/expected.json
new file mode 100644
index 0000000000..e8c618de62
--- /dev/null
+++ b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim/expected.json
@@ -0,0 +1,25 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#1080"
+ ],
+ "what": "the 0.5 mm front rim of a sloped basin's top chamfered 4: its leg on the top runs off the rim over the slab's front face (a cliff), so it builds as if the top went on and is cut by the front face, which it lowers to z = 28.524233 where it crosses it",
+ "source": "analytic",
+ "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 0.5)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144266.666667. The chamfer's triangle in (y, z): the edge (0.5, 30), its leg on the top to (-3.5, 30), past the front face y = 0, and d down the wall to (0.5 + d (20-0.5)/L, 30 - 20 d/L), L = sqrt((20-0.5)^2 + 400), built as if the top went on and cut by the front face (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds): the triangle clipped to y >= 0, the quadrilateral (0.5, 30), (0, 30), (0, 28.524233), (3.292401, 27.135999). At height z the blend runs between the sloped end walls x = 20 + (30-z)/2 and 80 - (30-z)/2 extended, which cut it: its length there is 30 + z, so it takes Int Int (30 + z) dy dz over its section (y, z). Removed (shoelace for the area and its first moment) 184.526613. V = 144082.140054",
+ "body_count": 1,
+ "volume_mm3": 144082.14005363008,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 100,
+ 60,
+ 30
+ ]
+ },
+ "tolerance": {
+ "rel": 1e-06
+ }
+}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim-refused/recipe.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim-refused/recipe.json
rename to tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim/recipe.json
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim-refused/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim-refused/expected.json
deleted file mode 100644
index c09bde3e15..0000000000
--- a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim-refused/expected.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#1080"
- ],
- "what": "the 0.5 mm front rim of a sloped basin's top chamfered 0.5: as wide as the rim, the chamfer would use the rim's top up: refused",
- "source": "analytic",
- "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 0.5)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144266.666667. A chamfer as wide as the face beside its edge uses it up: full-width chamfers are refused (the owner's ruling of 2026-10-30).",
- "outcome": "refused",
- "refusal": "the largest distance that fits is"
-}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim/expected.json
new file mode 100644
index 0000000000..c2c4a4bba0
--- /dev/null
+++ b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim/expected.json
@@ -0,0 +1,25 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#1080"
+ ],
+ "what": "the 0.5 mm front rim of a sloped basin's top chamfered 0.5, as wide as the rim: its leg on the top ends on the slab's front edge, using the rim's top up, and it builds",
+ "source": "analytic",
+ "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 0.5)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144266.666667. The chamfer's triangle in (y, z): the edge (0.5, 30), its leg on the top to (0, 30), the slab's front edge, and d down the wall to (0.5 + d (20-0.5)/L, 30 - 20 d/L), L = sqrt((20-0.5)^2 + 400) (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds). At height z the blend runs between the sloped end walls x = 20 + (30-z)/2 and 80 - (30-z)/2 extended, which cut it: its length there is 30 + z, so it takes Int Int (30 + z) dy dz over its section (y, z). Removed (shoelace for the area and its first moment) 5.359321. V = 144261.307346",
+ "body_count": 1,
+ "volume_mm3": 144261.307345957,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 100,
+ 60,
+ 30
+ ]
+ },
+ "tolerance": {
+ "rel": 1e-06
+ }
+}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim-refused/recipe.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim-refused/recipe.json
rename to tests/kernel-cases/fillets/1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim/recipe.json
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim-refused/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim-refused/expected.json
deleted file mode 100644
index 7338a22c34..0000000000
--- a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim-refused/expected.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#1080"
- ],
- "what": "the 1 mm front rim of a sloped basin's top chamfered 2: its leg on the top runs off the rim over the slab's front face, so it is refused, naming the largest distance that fits",
- "source": "analytic",
- "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144533.333333. The chamfer's leg on the rim's top (1 mm wide) would reach y = -1, off the rim and over the slab's front face y = 0, lowering that face: the owner's ruling of 2026-10-30 refuses a chamfer whose leg runs off the face beside its edge, naming the largest distance that fits.",
- "outcome": "refused",
- "refusal": "the largest distance that fits is"
-}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim/expected.json
new file mode 100644
index 0000000000..77ad7f6768
--- /dev/null
+++ b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim/expected.json
@@ -0,0 +1,25 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#1080"
+ ],
+ "what": "the 1 mm front rim of a sloped basin's top chamfered 2: its leg on the top runs off the rim over the slab's front face (a cliff), so it builds as if the top went on and is cut by the front face, which it lowers to z = 29.570689 where it crosses it",
+ "source": "analytic",
+ "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144533.333333. The chamfer's triangle in (y, z): the edge (1, 30), its leg on the top to (-1, 30), past the front face y = 0, and d down the wall to (1 + d (20-1)/L, 30 - 20 d/L), L = sqrt((20-1)^2 + 400), built as if the top went on and cut by the front face (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds): the triangle clipped to y >= 0, the quadrilateral (1, 30), (0, 30), (0, 29.570689), (2.377499, 28.550001). At height z the blend runs between the sloped end walls x = 20 + (30-z)/2 and 80 - (30-z)/2 extended, which cut it: its length there is 30 + z, so it takes Int Int (30 + z) dy dz over its section (y, z). Removed (shoelace for the area and its first moment) 73.450475. V = 144459.882858",
+ "body_count": 1,
+ "volume_mm3": 144459.8828581631,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 100,
+ 60,
+ 30
+ ]
+ },
+ "tolerance": {
+ "rel": 1e-06
+ }
+}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim-refused/recipe.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim-refused/recipe.json
rename to tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim/recipe.json
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim-refused/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim-refused/expected.json
deleted file mode 100644
index 85d86b88e6..0000000000
--- a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim-refused/expected.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#1080"
- ],
- "what": "the 1 mm front rim of a sloped basin's top chamfered 3: its leg on the top runs off the rim over the slab's front face, so it is refused, naming the largest distance that fits",
- "source": "analytic",
- "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144533.333333. The chamfer's leg on the rim's top (1 mm wide) would reach y = -2, off the rim and over the slab's front face y = 0, lowering that face: the owner's ruling of 2026-10-30 refuses a chamfer whose leg runs off the face beside its edge, naming the largest distance that fits.",
- "outcome": "refused",
- "refusal": "the largest distance that fits is"
-}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim/expected.json
new file mode 100644
index 0000000000..91c72f822b
--- /dev/null
+++ b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim/expected.json
@@ -0,0 +1,25 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#1080"
+ ],
+ "what": "the 1 mm front rim of a sloped basin's top chamfered 3: its leg on the top runs off the rim over the slab's front face (a cliff), so it builds as if the top went on and is cut by the front face, which it lowers to z = 29.141377 where it crosses it",
+ "source": "analytic",
+ "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144533.333333. The chamfer's triangle in (y, z): the edge (1, 30), its leg on the top to (-2, 30), past the front face y = 0, and d down the wall to (1 + d (20-1)/L, 30 - 20 d/L), L = sqrt((20-1)^2 + 400), built as if the top went on and cut by the front face (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds): the triangle clipped to y >= 0, the quadrilateral (1, 30), (0, 30), (0, 29.141377), (3.066248, 27.825002). At height z the blend runs between the sloped end walls x = 20 + (30-z)/2 and 80 - (30-z)/2 extended, which cut it: its length there is 30 + z, so it takes Int Int (30 + z) dy dz over its section (y, z). Removed (shoelace for the area and its first moment) 142.112912. V = 144391.220421",
+ "body_count": 1,
+ "volume_mm3": 144391.22042136008,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 100,
+ 60,
+ 30
+ ]
+ },
+ "tolerance": {
+ "rel": 1e-06
+ }
+}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim-refused/recipe.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim-refused/recipe.json
rename to tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim/recipe.json
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim-refused/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim-refused/expected.json
deleted file mode 100644
index 0a666d3974..0000000000
--- a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim-refused/expected.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#1080"
- ],
- "what": "the 1 mm front rim of a sloped basin's top chamfered 1: as wide as the rim, the chamfer would use the rim's top up: refused",
- "source": "analytic",
- "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144533.333333. A chamfer as wide as the face beside its edge uses it up: full-width chamfers are refused (the owner's ruling of 2026-10-30).",
- "outcome": "refused",
- "refusal": "the largest distance that fits is"
-}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim/expected.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim/expected.json
new file mode 100644
index 0000000000..4433f2f2f5
--- /dev/null
+++ b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim/expected.json
@@ -0,0 +1,25 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#1080"
+ ],
+ "what": "the 1 mm front rim of a sloped basin's top chamfered 1, as wide as the rim: its leg on the top ends on the slab's front edge, using the rim's top up, and it builds",
+ "source": "analytic",
+ "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144533.333333. The chamfer's triangle in (y, z): the edge (1, 30), its leg on the top to (0, 30), the slab's front edge, and d down the wall to (1 + d (20-1)/L, 30 - 20 d/L), L = sqrt((20-1)^2 + 400) (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds). At height z the blend runs between the sloped end walls x = 20 + (30-z)/2 and 80 - (30-z)/2 extended, which cut it: its length there is 30 + z, so it takes Int Int (30 + z) dy dz over its section (y, z). Removed (shoelace for the area and its first moment) 21.662379. V = 144511.670954",
+ "body_count": 1,
+ "volume_mm3": 144511.67095435527,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 100,
+ 60,
+ 30
+ ]
+ },
+ "tolerance": {
+ "rel": 1e-06
+ }
+}
diff --git a/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim-refused/recipe.json b/tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim-refused/recipe.json
rename to tests/kernel-cases/fillets/1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim/recipe.json
diff --git a/tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height-refused/expected.json b/tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height-refused/expected.json
deleted file mode 100644
index 22e9a7c0ed..0000000000
--- a/tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height-refused/expected.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#1113",
- "tangency-labs/solidcraft#851"
- ],
- "what": "the top edge of #851's concave R21 wall chamfered 10, the wall's full height: refused as too large",
- "source": "analytic",
- "method": "a chamfer as tall as the wall would leave the wall a face of no area (its two boundary arcs on one line): refused as too large (#1113), naming the largest distance that fits",
- "outcome": "refused",
- "refusal": "the largest distance that fits is"
-}
diff --git a/tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height/expected.json b/tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height/expected.json
new file mode 100644
index 0000000000..ff9c5f72b2
--- /dev/null
+++ b/tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height/expected.json
@@ -0,0 +1,15 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#1113",
+ "tangency-labs/solidcraft#851"
+ ],
+ "what": "the top edge of #851's concave R21 wall chamfered 10, the wall's full height: its leg down the wall ends on the wall's bottom edge, using the wall up, and it builds",
+ "source": "analytic",
+ "method": "plate x 0..41.1667, y -21..0 and the corner x 41.1667..62.1667 less the cylinder r 21 about (62.1667, -21), 10 high (tessellation/1263): V0 = 10 (62.1667 x 21 - pi 21^2/4) = 9591.394099. s = 10, the wall's full height (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds). The blend's section in (rho, z) about the wall's axis, the triangle (rho - 21) + (10 - z) <= s, is swept round it from the front face (square to the arc) to the back face y = 0, which the arc runs into tangent at the tip: at radius rho the part spans the angle asin(21/rho), so the blend takes Int_21^31 rho asin(21/rho) h(rho) drho with h(rho) = s - (rho - 21), integrated as Int u (21/sin u) h(21/sin u) 21 cos u / sin^2 u du over u = asin(21/rho) in [asin(21/31), pi/2] (smooth there), Gauss-Legendre 30 points on 64 pieces, converged to the last digit: 1303.400331. V = 8287.993768",
+ "body_count": 1,
+ "volume_mm3": 8287.993767991788,
+ "bbox": null,
+ "continuity": {
+ "order": "g0"
+ }
+}
diff --git a/tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height-refused/recipe.json b/tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height-refused/recipe.json
rename to tests/kernel-cases/fillets/1113-chamfer-arc-top-edge-full-wall-height/recipe.json
diff --git a/tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom-refused/expected.json b/tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom-refused/expected.json
deleted file mode 100644
index e7ef07957c..0000000000
--- a/tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom-refused/expected.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#2893"
- ],
- "what": "the top rim of a cylinder r10 x 20 chamfered 2 across the top and 25 down a 20 mm wall: refused",
- "source": "analytic",
- "method": "25 down the 20 mm wall runs past the bottom face: no chamfer of the rim between the top and the wall has those sizes, so the right answer is a refusal saying why",
- "outcome": "refused",
- "refusal": "larger than"
-}
diff --git a/tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom/expected.json b/tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom/expected.json
new file mode 100644
index 0000000000..7c1b20b662
--- /dev/null
+++ b/tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom/expected.json
@@ -0,0 +1,23 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#2893"
+ ],
+ "what": "the top rim of a cylinder r10 x 20 chamfered 2 across the top and 25 down a 20 mm wall: the leg down the wall runs 5 past the bottom rim, so it builds as if the wall went on and is cut by the bottom face, a cone frustum",
+ "source": "analytic",
+ "method": "The chamfer's line in (rho, z) runs from (8, 20) on the top to (10, -5) on the wall continued past the bottom face z = 0 (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds): built as if the wall went on and cut by the bottom face, it takes the whole wall, leaving the frustum from r 8 at z = 20 to r 8 + 2 (20/25) = 9.6 at z = 0: pi h (R1^2 + R1 R2 + R2^2) / 3 = pi 20 (64 + 76.8 + 92.16) / 3 = 4879.102831. Faces: the top, the cone and the bottom: 3.",
+ "body_count": 1,
+ "volume_mm3": 4879.102830535188,
+ "faces": 3,
+ "bbox": {
+ "min": [
+ -9.6,
+ -9.6,
+ 0
+ ],
+ "max": [
+ 9.6,
+ 9.6,
+ 20
+ ]
+ }
+}
diff --git a/tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom-refused/recipe.json b/tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom-refused/recipe.json
rename to tests/kernel-cases/fillets/2893-chamfer-two-distances-past-the-bottom/recipe.json
diff --git a/tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges-refused/expected.json b/tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges-refused/expected.json
deleted file mode 100644
index b12749e534..0000000000
--- a/tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges-refused/expected.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "sources": [
- "tangency-labs/solidcraft#5835"
- ],
- "what": "the front and right top rim edges of a sloped basin with a 1 mm front rim chamfered 2: the front chamfer's leg runs off the rim, so it is refused, naming the largest distance that fits",
- "source": "analytic",
- "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144533.333333. The front chamfer's leg on the 1 mm rim would reach y = -1, over the slab's front face: refused (the owner's ruling of 2026-10-30).",
- "outcome": "refused",
- "refusal": "the largest distance that fits is"
-}
diff --git a/tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges/expected.json b/tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges/expected.json
new file mode 100644
index 0000000000..251d9f6e89
--- /dev/null
+++ b/tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges/expected.json
@@ -0,0 +1,25 @@
+{
+ "sources": [
+ "tangency-labs/solidcraft#5835"
+ ],
+ "what": "the front and right top rim edges of a sloped basin with a 1 mm front rim chamfered 2: the front chamfer's leg runs off the rim over the slab's front face (a cliff), so they build as if the top went on, mitred at the rim's corner, and are cut by the front face",
+ "source": "analytic",
+ "method": "slab 100 x 60 x 30 less the loft from the rectangle (20, 1)-(80, 50) at z = 30 to (30, 20)-(70, 40) at z = 10 (planar walls, a prismatoid: 20/6 (A_top + A_bottom + 4 A_mid)): V0 = 144533.333333. Sliced at depth t below the top, each picked edge's chamfer is a strip beside its wall w(t) = d (1 - t/delta) wide, delta = d / sqrt(1 + k^2), k the wall's run over its drop; picked neighbours meet in mitres (each runs on past the corner and the quadrant beyond both walls loses what both take) and an unpicked neighbour's wall, extended, ends it, so the section removed is the pocket's rectangle at t grown by w(t) on each picked side, clipped to the slab's front face y >= 0 (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds), less the pocket's rectangle. That area is quadratic in t between the breakpoints (each delta, and where the front strip's edge y0 + k t - w(t) crosses y = 0), so Simpson's rule on each piece is exact. Removed 161.279149. V = 144372.054184",
+ "body_count": 1,
+ "volume_mm3": 144372.05418423912,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 100,
+ 60,
+ 30
+ ]
+ },
+ "tolerance": {
+ "rel": 1e-06
+ }
+}
diff --git a/tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges-refused/recipe.json b/tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges-refused/recipe.json
rename to tests/kernel-cases/fillets/5835-chamfer-sloped-basin-1-mm-rim-2-two-edges/recipe.json
diff --git a/tests/kernel-cases/fillets/KNOWN_FAILING b/tests/kernel-cases/fillets/KNOWN_FAILING
index f18c6d3f87..0b4bd05c36 100644
--- a/tests/kernel-cases/fillets/KNOWN_FAILING
+++ b/tests/kernel-cases/fillets/KNOWN_FAILING
@@ -2,8 +2,10 @@
# rig gate (.github/workflows/fillet-rig.yml) fails on a case that fails and is not listed here,
# and on a listed case that passes: a fix removes its line in the same pull request.
# Baseline: develop 242bbc89f with the SMLib fixes of 2026-10-29 (integration-overnight + b78bd4a), aarch64 Linux.
-1080-chamfer-sloped-basin-0-5-mm-rim-as-wide-as-the-rim-refused builds the full-width chamfer where it should be refused, naming the largest that fits
-1080-chamfer-sloped-basin-1-mm-rim-as-wide-as-the-rim-refused builds the full-width chamfer where it should be refused, naming the largest that fits
+1080-chamfer-equal-slope-basin-1-mm-rim-loop-2 SMLib refuses the chamfers' cliff overflow as too large (SM_FILERR_NO_ROOM, CloseRemovalRegion): the blended loop's boundary closes on one face, where it should build cut by the front face
+1080-chamfer-sloped-basin-0-5-mm-rim-4-past-the-rim SMLib refuses the chamfer past the rim as too large (SM_FILERR_NO_ROOM, CloseRemovalRegion): its sheet's boundary along the end wall's top edge line, past the rim, lies on the surfaces of two faces, where it should build cut by the front face
+1080-chamfer-sloped-basin-1-mm-rim-2-past-the-rim SMLib refuses the chamfer past the rim as too large (SM_FILERR_NO_ROOM, CloseRemovalRegion): its sheet's boundary along the end wall's top edge line, past the rim, lies on the surfaces of two faces, where it should build cut by the front face
+1080-chamfer-sloped-basin-1-mm-rim-3-past-the-rim SMLib refuses the chamfer past the rim as too large (SM_FILERR_NO_ROOM, CloseRemovalRegion): its sheet's boundary along the end wall's top edge line, past the rim, lies on the surfaces of two faces, where it should build cut by the front face
1080-fillet-equal-slope-basin-1-mm-rim-loop-0-5 SMLib's check refuses the round: SmSurfOfRevolution Test #7, polar curve intervals do not match the surface's domain
1080-fillet-equal-slope-basin-1-mm-rim-loop-4 not supported yet: a convex round past its face is not yet built by subtraction
1080-fillet-notched-block-top-outline-r8 not supported yet: a convex round past its face is not yet built by subtraction (largest that fits named 7 mm)
@@ -13,18 +15,17 @@
1080-fillet-sloped-basin-1-mm-rim-r4 not supported yet: a convex round past its face is not yet built by subtraction (largest that fits named 2.329 mm)
1080-fillet-sloped-basin-1-mm-rim-r4-2-edges not supported yet: a convex round past its face is not yet built by subtraction
1080-fillet-sloped-basin-1-mm-rim-r4-4-edges not supported yet: a convex round past its face is not yet built by subtraction
-1113-chamfer-arc-top-edge-full-wall-height-refused builds the chamfer as tall as the wall where it should be refused as too large
1207-fillet-bar-top-edge-after-boss-arc-round-r0-5 SMLib's check refuses the round: internal coincident control points in a B-spline curve (an internal pole)
1668-fillet-outer-top-edge-of-thin-wall-r7-past-inside-corner a slit along the hollow, 0.507 mm^3 off: 38458.389 is V0 less the round's whole section along 104, so the section's part over the hollow (0.005068 mm^2 along 100), which is not material, is taken anyway
190-fillet-disc-rim-past-its-2mm-wall SMLib status 1001: a convex round past its face is not yet built by subtraction
2852-fillet-outer-round-r30-past-inner-round-refused refused for another reason: SMLib's result is not a closed solid, not too large naming 25.24
2893-chamfer-distance-and-angle-past-the-wall-refused refused for another reason: SMLib SM_ERR_INVALID_INPUT, not a check saying the angle runs past the wall
2893-chamfer-two-distances-elliptical-rim SMLib status 1001 on the elliptical rim's chamfer
-2893-chamfer-two-distances-past-the-bottom-refused refused for another reason: SMLib status 1001, not too large
+2893-chamfer-two-distances-past-the-bottom SMLib status 1001: SmFilletNx1ClosedCorner cannot compute the closed rim's corner geometry, where the chamfer past the bottom rim should build the frustum
4782-fillet-bar-edge-wider-than-both-faces SMLib status 1001: a convex round past both its faces is not yet built by subtraction
5158-fillet-round-just-past-a-10mm-face SMLib status 1001: a convex round 0.01 past its face is not yet built by subtraction (10.0001-10.04 open)
5835-chamfer-sloped-basin-1-mm-rim-0-5-4-edges SMLib status 1001 on the chamfers meeting at the rim's re-entrant corners
-5835-chamfer-sloped-basin-1-mm-rim-2-two-edges-refused refused for another reason: SMLib status 1001, not too large naming the largest that fits
+5835-chamfer-sloped-basin-1-mm-rim-2-two-edges SMLib status 1001: SmFilletNx2Corner, CalcFilletIntSideFace cannot intersect a chamfer with the side face at the rim's corner, where the front chamfer past the rim should build cut by the front face
5835-chamfer-sloped-basin-4-mm-rim-2-2-edges SMLib status 1001 on the chamfers meeting at the rim's re-entrant corner
5835-chamfer-sloped-basin-4-mm-rim-2-4-edges SMLib status 1001 on the chamfers meeting at the rim's re-entrant corners
851-chamfer-knife-edge-tip-0-5 SMLib SM_ERR_INVALID_INPUT on the knife edge (opposite normals on its two faces)
@@ -39,9 +40,7 @@ cov-chamfer-concave-edge-through-up-down-joined-squares SMLib status 1001 on the
cov-chamfer-outer-corner-edge-of-a-shelled-box-with-a-lip SMLib's chamfer result is not a closed solid where it ends on the lip
cov-fillet-arc-edge-on-an-oblique-cut-of-a-bar SMLib's check refuses the round: internal coincident control points in a B-spline curve
every-block-cylinder-crease-top-edge-after-arc-round-r1 the r1 round's contact seam with the block's side face reads 60 degrees (the cylinder wall's normal) at its end on the crease (8.660, 5, 15.284): G0 where the round is built tangent
-every-chamfer-pocket-rim-5-5-refused refused naming 5 mm as the largest distance: the full-width chamfer (legs as deep as the 5 mm walls) builds instead of being refused
-every-chamfer-pocket-rim-5-full-depth-refused the full-width chamfer (legs as deep as the 5 mm walls) builds instead of being refused
-every-hole-top-rim-chamfer-10-full-depth-refused the full-width chamfer (leg as deep as the 10 mm plate) builds instead of being refused
+every-chamfer-pocket-rim-5-5-past-the-floor SMLib refuses the chamfers' cliff overflow as too large (SM_FILERR_NO_ROOM, CloseRemovalRegion): the blended loop's boundary closes on one face, where it should build with a groove round the floor
every-hole-top-rim-r12-past-plate-bottom SMLib status 1001: a convex round past its face on the tangent side is not yet built by subtraction
every-pocket-floor-and-rim-edges-r2 a corner patch where two rim rounds meet at each concave pocket corner (23 faces, not 19) instead of the mitre the rounds make running into each other
every-pocket-rim-edges-r2 a corner patch where two rim rounds meet at each concave pocket corner (19 faces, not 15) instead of the mitre the rounds make running into each other
diff --git a/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-past-the-floor/expected.json b/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-past-the-floor/expected.json
new file mode 100644
index 0000000000..269601e9d6
--- /dev/null
+++ b/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-past-the-floor/expected.json
@@ -0,0 +1,24 @@
+{
+ "sources": [],
+ "what": "a 5 mm deep pocket's rim edges chamfered 5.5: the legs run 0.5 past the walls' bottom, so it builds as if the walls went on below the floor, a groove 0.5 deep round the floor's edge",
+ "source": "analytic",
+ "method": "plate 60x40x10 with the pocket 30x20x5 (x 15..45, y 10..30, floor z = 5, sharp vertical corners): V0 = 24000 - 3000 = 21000. Each convex rim edge loses the triangle d^2/2 along its length (100 in all); at each pocket corner the two chamfers run on past it and meet in a mitre, the quadrant losing what both remove: points (s, t) past both walls with s + u < d and t + u < d (u the depth), int_0^d (d-u)^2 du = d^3/3: removed = 50 d^2 + (4/3) d^3. d = 5.5 runs 0.5 past the walls' bottom (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds): the chamfers are built as if the walls went on below the floor and what they take is cut from the plate; the formula holds as it is, its section at depth u in [5, 5.5] being the ring between the floor's rectangle and the rectangle grown by d - u, a groove round the floor's edge (the floor's own rectangle is not part of the blends). Faces: the plate's 6, the floor, the 4 chamfers and the groove's 4 walls (the walls' planes from z = 4.5 to 5): 15. Removed 1734.333333. V = 19265.666667.",
+ "body_count": 1,
+ "volume_mm3": 19265.666666666668,
+ "faces": 15,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 60,
+ 40,
+ 10
+ ]
+ },
+ "continuity": {
+ "order": "g0"
+ }
+}
diff --git a/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-refused/recipe.json b/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-past-the-floor/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-refused/recipe.json
rename to tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-past-the-floor/recipe.json
diff --git a/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-refused/expected.json b/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-refused/expected.json
deleted file mode 100644
index 0b13ada99d..0000000000
--- a/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-5-refused/expected.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "sources": [],
- "what": "a 5 mm deep pocket's rim edges chamfered 5.5: the legs would run off the walls over the floor: refused, naming the largest distance that fits",
- "source": "invariants",
- "method": "owner rule: a chamfer whose leg runs off the face beside its edge over another face is refused, naming the largest size that fits, and a full-width chamfer stays refused. The walls are 5 deep, so every distance below 5 fits (every-chamfer-pocket-rim-4-9-fits) and 5 does not; the search names the largest at the request's three significant digits (step 0.001): 4.999.",
- "outcome": "refused",
- "refusal": "the largest distance that fits is 4.999 mm"
-}
\ No newline at end of file
diff --git a/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth-refused/expected.json b/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth-refused/expected.json
deleted file mode 100644
index 5e695113ee..0000000000
--- a/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth-refused/expected.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "sources": [],
- "what": "a 5 mm deep pocket's rim edges chamfered 5: the legs would use the whole walls: refused, naming the largest distance that fits",
- "source": "invariants",
- "method": "owner rule: a chamfer whose leg runs off the face beside its edge over another face is refused, naming the largest size that fits, and a full-width chamfer stays refused. The walls are 5 deep, so every distance below 5 fits (every-chamfer-pocket-rim-4-9-fits) and 5 does not; the search names the largest at the request's three significant digits (step 0.001): 4.999.",
- "outcome": "refused",
- "refusal": "the largest distance that fits is 4.999 mm"
-}
\ No newline at end of file
diff --git a/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth/expected.json b/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth/expected.json
new file mode 100644
index 0000000000..a1a878392f
--- /dev/null
+++ b/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth/expected.json
@@ -0,0 +1,24 @@
+{
+ "sources": [],
+ "what": "a 5 mm deep pocket's rim edges chamfered 5: the legs use the whole walls, ending on the floor's edges, and it builds",
+ "source": "analytic",
+ "method": "plate 60x40x10 with the pocket 30x20x5 (x 15..45, y 10..30, floor z = 5, sharp vertical corners): V0 = 24000 - 3000 = 21000. Each convex rim edge loses the triangle d^2/2 along its length (100 in all); at each pocket corner the two chamfers run on past it and meet in a mitre, the quadrant losing what both remove: points (s, t) past both walls with s + u < d and t + u < d (u the depth), int_0^d (d-u)^2 du = d^3/3: removed = 50 d^2 + (4/3) d^3. d = 5, the walls' full depth (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds): the walls are used up, the chamfers meeting the floor along its edges, so the faces are the plate's 6, the floor and the 4 chamfers: 11. Removed 1416.666667. V = 19583.333333.",
+ "body_count": 1,
+ "volume_mm3": 19583.333333333332,
+ "faces": 11,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 60,
+ 40,
+ 10
+ ]
+ },
+ "continuity": {
+ "order": "g0"
+ }
+}
diff --git a/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth-refused/recipe.json b/tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth-refused/recipe.json
rename to tests/kernel-cases/fillets/every-chamfer-pocket-rim-5-full-depth/recipe.json
diff --git a/tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth-refused/expected.json b/tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth-refused/expected.json
deleted file mode 100644
index 3414706e7a..0000000000
--- a/tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth-refused/expected.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "sources": [],
- "what": "the top rim of a hole through a 10 mm plate chamfered 10: its leg would use the hole's whole wall: refused, naming the largest distance that fits",
- "source": "invariants",
- "method": "owner rule: a chamfer whose leg runs off the face beside its edge is refused, and a full-width chamfer stays refused (it would replace the wall and turn the bottom rim into the chamfer's edge, changing the user's geometry). The wall is 10 tall, so every distance below 10 fits; the search names the largest at the request's three significant digits (step 0.01): 9.99.",
- "outcome": "refused",
- "refusal": "the largest distance that fits is 9.99 mm"
-}
\ No newline at end of file
diff --git a/tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth/expected.json b/tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth/expected.json
new file mode 100644
index 0000000000..9feffc90f2
--- /dev/null
+++ b/tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth/expected.json
@@ -0,0 +1,24 @@
+{
+ "sources": [],
+ "what": "the top rim of a hole through a 10 mm plate chamfered 10: its leg uses the hole's whole wall, ending on the bottom rim, and it builds (a cone from the top to the bottom rim)",
+ "source": "analytic",
+ "method": "plate 40x40x10 with a through hole R5 at (20, 20): V0 = 16000 - 250 pi = 15214.6018. The chamfer's legs are 10 along the top face (to rho = 15, inside the plate's 20 to its sides) and 10 down the wall, its whole height (the owner's ruling of 2026-10-30 (d7): a chamfer that reaches or runs past a rim builds): the triangle 10^2/2 at centroid rho = 5 + 10/3, revolved once (Pappus): 2500 pi / 3 = 2617.9939. V = 16000 - 3250 pi / 3 = 12596.6080. The wall is used up: the faces are the plate's 6 and the cone: 7.",
+ "body_count": 1,
+ "volume_mm3": 12596.607958611057,
+ "faces": 7,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 40,
+ 40,
+ 10
+ ]
+ },
+ "continuity": {
+ "order": "g0"
+ }
+}
diff --git a/tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth-refused/recipe.json b/tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth/recipe.json
similarity index 100%
rename from tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth-refused/recipe.json
rename to tests/kernel-cases/fillets/every-hole-top-rim-chamfer-10-full-depth/recipe.json
diff --git a/tests/kernel-cases/import/KNOWN_FAILING b/tests/kernel-cases/import/KNOWN_FAILING
index 7eafa4152d..0f96696619 100644
--- a/tests/kernel-cases/import/KNOWN_FAILING
+++ b/tests/kernel-cases/import/KNOWN_FAILING
@@ -2,4 +2,3 @@
# rig gate (.github/workflows/kernel-rig.yml) fails on a case that fails and is not listed here,
# and on a listed case that passes: a fix removes its line in the same pull request.
# Baseline: develop 5ada4fc8a with SMLib 90aabff (the run on 60b1c6a, aarch64 Linux).
-cov-step-horn-torus-quarter-round-trip SMLib revolve status 1001 on a profile touching its axis (the part is never built)
diff --git a/tests/kernel-cases/sweeps/KNOWN_FAILING b/tests/kernel-cases/sweeps/KNOWN_FAILING
index ed57ec761c..82aa00854d 100644
--- a/tests/kernel-cases/sweeps/KNOWN_FAILING
+++ b/tests/kernel-cases/sweeps/KNOWN_FAILING
@@ -2,4 +2,3 @@
# rig gate (.github/workflows/kernel-rig.yml) fails on a case that fails and is not listed here,
# and on a listed case that passes: a fix removes its line in the same pull request.
# Baseline: not seeded yet; seeded from a develop run after the SMLib pin bump.
-cov-revolve-circle-touching-its-axis-a-quarter-turn SMLib revolve status 1001 on a profile touching its axis