Skip to content

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

Kernel test: the tabbed plate's rim and corner arc take off the rim's closed form

jyvikoc7c28515ce38
diff --git a/crates/kernel/src/tests.rs b/crates/kernel/src/tests.rs
index b3fdff69a4..da7f929744 100644
--- a/crates/kernel/src/tests.rs
+++ b/crates/kernel/src/tests.rs
@@ -1745,10 +1745,11 @@ fn tabbed_plate_outline() -> Loop2 {
/// solidcore#2223: the tabbed plate's R25 rim and one R2 tab corner arc, which share no vertex,
/// rounded together at r 0.5 on the plate 2 high (no hole). Each rounds alone; together they
-/// failed 1001 in cliff_overflow. They take off the sum: the rim alone's 7.958674274526857
-/// (solidcore#2176's pinned value) and the corner arc's Pappus volume with flat ends,
-/// 0.15913583972191622 (the spandrel (1 − π/4) r² about the corner's axis at 2 − its centroid
-/// over a quarter turn), 8.117810114.
+/// failed 1001 in cliff_overflow. They take off the sum: the rim alone's closed form,
+/// 7.958672911836132 (its spandrel (1 − π/4) r² revolved about the disc's axis outside |x| < 4,
+/// solidcore#2176's test; the rim's End, `fillet_blend_corner`, builds it to 5e-8), and the
+/// corner arc's Pappus volume with flat ends, 0.15913583972191622 (the spandrel about the
+/// corner's axis at 2 − its centroid over a quarter turn), 8.117808752.
#[test]
fn fillet_tabbed_plate_rim_and_one_corner_arc_together() {
let body = extrude(&Plane::XY, &[Region2 { outer: tabbed_plate_outline(), holes: vec![] }], 0.0, 2.0).unwrap().pop().unwrap();
@@ -1756,7 +1757,7 @@ fn fillet_tabbed_plate_rim_and_one_corner_arc_together() {
let (spandrel, centroid) = ((1.0 - PI / 4.0) * r * r, r * (10.0 - 3.0 * PI) / (3.0 * (4.0 - PI)));
let corner = spandrel * (PI / 2.0) * (2.0 - centroid);
assert!((corner - 0.159_135_839_721_916_22).abs() < 1e-12, "{corner}");
- let want = 7.958_674_274_526_857 + corner;
+ let want = 7.958_672_911_836_132 + corner;
let picks = [
Vec3::new(-24.91935125502191, -2.0064727829797544, 2.0),
Vec3::new(24.919351255429795, -2.006472777913911, 2.0),