Tessellation: point-in-trim tests skip runs of segments the ray canno… (#1309)

Thanks @Ian-cmd-ops.
This commit is contained in:
H. Conrad authored and GitHub committed 2026-10-16 01:54:29 -04:00
1 parent 6f270f6259
commit dcffab09b1
4 files changed
+203 -5

No files matched your search

@@ -0,0 +1,16 @@
//! Equivalence check for SolidCraft's change to the vendored tessellator's point-in-trim test.
//!
//! The vendored crates are outside the workspace, so their own tests never run in CI. The old
//! test is kept behind the crate's `test-hooks` feature (on only for kernel tests) and this
//! checks the faster one gives the same answer everywhere it is probed.
use truck_meshalgo::tessellation::include_test_hooks;
/// Point-in-trim with run boxes: same inside/outside answer as before on more than 100k points.
#[test]
fn tessellation_include_same_as_before() {
match include_test_hooks::include_answers_as_before(0..120) {
Ok(n) => assert!(n > 100_000, "only {n} points checked"),
Err(e) => panic!("{e}"),
}
}