From 6387be309f7c82bfd9dab8099f9603ca67223cfd Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Thu, 29 Oct 2026 00:01:16 -0400 Subject: [PATCH] Tests: the high-degree line prism_curve certifies is written at the record's highest degree genuine_curves_and_oriented_traversal_are_certified built its degree-elevated line at degree 17. A B-rep record holds splines up to degree 16 (MAX_SPLINE_DEGREE, Brep::validate, #8618), so no such edge reaches the certifier, and the evaluator refuses to build it. The line is now written at MAX_SPLINE_DEGREE: still a line of the highest degree a record can carry. Co-Authored-By: Claude Opus 5.5 --- crates/kernel/src/prism_curve.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/kernel/src/prism_curve.rs b/crates/kernel/src/prism_curve.rs index 611ffc3e2..9f4b69a9d 100644 --- a/crates/kernel/src/prism_curve.rs +++ b/crates/kernel/src/prism_curve.rs @@ -649,7 +649,8 @@ mod tests { assert!((sweep.abs() - std::f64::consts::FRAC_PI_2).abs() < 1e-8); assert_eq!(sweep > 0., forward); } - let line = curve(&[0., 10.], &[0.], &[1.], 17); + // A line written at the highest degree a B-rep record holds (MAX_SPLINE_DEGREE). + let line = curve(&[0., 10.], &[0.], &[1.], solidcraft_geom::bspline::MAX_SPLINE_DEGREE); assert!(matches!(segment(&run(&line, true), &Plane::XY, 1e-5, &mut 2_000_000).unwrap()[0], Seg2::Line { .. })); // The longitudinal derivative is negative at t=1/3, independently // establishing genuine retracing rather than a stationary tangent.