From bb4299e5659d17e51a52fe5ad66976174d357d61 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:43:03 -0400 Subject: [PATCH] Tests: a drafted cube side leaves the bottom and the opposite side Kept, the rest Modified Drafting a cube's side about its bottom edge (on the neutral plane) tilts the side and moves the edges it shares with the top and the two faces beside it: those four are trimmed differently (Modified); the bottom and the opposite side are untouched (Kept). Truck called all six Modified; SMLib's history called the moved neighbours Kept. Needs the SMLib fix "history: a face whose edges an operation moved is Modified, not Kept" (SMLib branch devgreen-kernel-records, cdaf205) and a pin bump. Co-Authored-By: Claude Opus 5.5 --- crates/kernel/src/modify_history_tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/kernel/src/modify_history_tests.rs b/crates/kernel/src/modify_history_tests.rs index 9a8247856..7d953e830 100644 --- a/crates/kernel/src/modify_history_tests.rs +++ b/crates/kernel/src/modify_history_tests.rs @@ -280,7 +280,10 @@ fn draft_tilts_faces() { let side = Vec3::new(40.0, 15.0, 10.0); let r = crate::draft(&b, &[side], &Plane::XY, Vec3::Z, 5f64.to_radians()).unwrap(); let h = verified(&r, &b, Reach { made: 0.0, moved: 2.0 }); - assert_eq!(changes(h), [0, 6, 0, 0, 0]); + // The side tilts about its bottom edge (on the neutral plane z = 0); the top and the two + // faces beside it lose a wedge along their moved edges. The bottom and the opposite side + // are untouched. + assert_eq!(changes(h), [2, 4, 0, 0, 0]); assert_eq!(with(h, &[face(face_at(&b, side))]).len(), 1); // Walls of a body that is not convex. let l = ell();