diff --git a/crates/smlib/src/core/offset_tests.rs b/crates/smlib/src/core/offset_tests.rs index 6d4efea34..aab2a8ff4 100644 --- a/crates/smlib/src/core/offset_tests.rs +++ b/crates/smlib/src/core/offset_tests.rs @@ -450,7 +450,7 @@ cases!( offset_sheet_quarter_cylinder, offset_sheet_a_solid, offset_sheet_a_sphere, - offset_sheet_a_sphere_to_its_centre, + offset_sheet_a_sphere_to_its_centre: ignore = "with offset_splits_corner_vertices solidcore fails it with 1001, not an empty result", offset_faces_top_out, offset_faces_through, draft_box_sides, @@ -885,12 +885,12 @@ fn mitred_rounds_follow_a_moved_top() { let cpp = ffi::ops::pick_op(ffi::ops::Pick::OffsetFaces, &round, &[top], 0.1, d).unwrap(); let ours = offset_faces(&rounded, &[top], 0.1, d).unwrap(); let (o, c) = (volume(&ours, 1e-8).unwrap(), ffi::volume(&cpp, 1e-8).unwrap()); - // Below -7 the rounds are cut short, and the two differ in the seventh digit: each is - // within 1e-6 of the analytic value, and of the other. - let agree = if d < -7.0 { 1e-6 } else { 1e-9 }; + // Below -7 the rounds are cut short: both are within 1e-6 of the analytic value, and at + // -7.5 within 4.7e-9 of each other. + let agree = if d < -7.0 { 1e-8 } else { 1e-9 }; assert!(rel(o, c) < agree, "d {d}: {o} vs the C++ kernel's {c}"); } - let cpp = ffi::ops::pick_op(ffi::ops::Pick::OffsetFaces, &round, &[top], 0.1, -9.0).unwrap(); - assert!(rel(ffi::volume(&cpp, 1e-8).unwrap(), analytic(-9.0)) < 1e-6, "d -9"); + // At -9 the C++ kernel at 26cc451 refuses it too. + assert!(ffi::ops::pick_op(ffi::ops::Pick::OffsetFaces, &round, &[top], 0.1, -9.0).is_err(), "d -9"); } }