Wave 458/509: engine tests: probes ask for the exact point class (and 3 more)

4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop.

- cdff4ac7c jyviko: engine tests: probes ask for the exact point class
- 7ca072ec6 jyviko: ui, cli tests: probes ask for the exact point class
- a85d22e60 jyviko: kernel: Body::contains, the mesh test, is gone
- baf51b271 jyviko: kernel tests: the rim chamfers running off their rims build, on SMLib 737c392

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
jyviko
2026-10-30 17:09:20 -04:00
parent dd2376923f
commit dfe4701d22
30 changed files with 310 additions and 168 deletions
-1
View File
@@ -599,7 +599,6 @@ mod tests {
/// 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]
#[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)]);
-5
View File
@@ -1354,11 +1354,6 @@ impl Body {
Ok(best)
}
/// Is the point inside the solid?
pub fn contains(&self, p: Vec3) -> bool {
self.mesh(&MeshTolerance::chord(self.size() * 2e-3)).map(|m| m.contains(p)).unwrap_or(false)
}
/// Where `p` lies against the body, decided exactly on its faces' surfaces and edges' curves
/// (SMLib's point classification at the body's own tolerance, no mesh): on the boundary when
/// within that tolerance of a face, an edge or a vertex, else inside its material or outside
-1
View File
@@ -1193,7 +1193,6 @@ fn chamfer_as_wide_as_sloped_basin_rim_builds() {
/// ([`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);