intersect.surface_intersector_p5 green
- Layer
- 36
- Upstream lines
- 622
- Functions
- 1
- Rust module
intersect::surface_intersector::p5
Status history
- todo 622 lines
- partial 622 lines
- green 622 lines
Source: crates/solidcore/src/intersect/surface_intersector/p5.rs
Upstream: source/SMLib/src/SmSurfaceIntersector.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
PR #602: CSI LocalSolve uses the existing cache-aware polar-cone helper with the owning cache and node id. Canonical Linux CI 39943251832 at 61d7e1c8a: 1725 cases, 1725 passed, 0 failed, 0 deferred, max_rel_err=0, with_values=1725, no_values=0, vacuous=0. All original inputs retained; gen0393 and gen1277 are 2 genuine baseline gains (main CI 39940775733: 1723 passed, 2 deferred on SmBezierPatch::GetPolarBox). Native seed replay passes; test-only cone controls cover stored/lazy polar boxes without inflating parity counts. Only this unit is promoted; no #599 runner/domain gains claimed. Historical evidence follows. PR #140 second review: the surface cache iso curves of planes (GetIsoBoundaryCurves included) and surfaces of revolution are wired; 1725 cases, 1471 pass bit-identical (was 1009), 0 failed, 254 deferred (intersect.surface_intersector_p2 199, intersect.surface_drop_lib_p3 30, curve.iso_curve 23, surface.surface_cache_p1 2: SmBezierPatch::GetPolarBox); gen0072 passes (157 values, the ComputeSingularityPoint dispatch fix). 1 fns; largest: SmSurfaceIntersector::DoIntersection; unit-SCC #22 (220 units); 150 upstream test entry points reach this unit; PARTIAL (PR #82): DoIntersection ported on AdvSurfaceIntersector (every upstream caller's class) with GrazingBoxProcess; difftest 1725 cases (94 review adversarial fixture cases; 131 inline edge cases: unit-square planes and their bilinear B-splines apart, corner touching out/back/coplanar, edge coplanar/folded, parallel, coincident, near parallel, crossing, tiny, each without/with edges, thin boxes and real caches, plus a self intersection; 1500 generated scenes at scales 1e-3..1e4 with hand-built trees swapped into the real C++ caches, optional tolerances, curve-bounded surfaces), 577 pass bit-identical (max_rel_err 0; touching points, boundary grazes, disjoint/empty results, intersector state), 0 failed, 1148 deferred (surface.surface_cache_p1 449: SmPlane::CreateIsoParametricCurve in the cache; surface.surface_p8 291: GlobalCurveIntersect; surface.surface_p11 234: LocalSurfaceIntersect; surface.surface_p6 174: CalculateContinuities in every real cache build); --perturb detects 577/577; DISPATCH GAP: TraceCurve uses the basic ComputeSingularityPoint (see plan/findings.md) [surface.surface_p6 wired (PR #92): 1725 cases, 672 pass, 1053 deferred (surface.surface_cache_p1 488, surface.surface_p11 252, surface.surface_p8 313)] surface.surface_p11 (PR #120, after merging main with surface.surface_p3): cases=1725 passed=807 failed=0 deferred=918 (intersect.surface_intersector_p2 117, surface.surface_cache_p1 488, surface.surface_p8 313); --perturb SENSITIVE. Re-run (PR #118, surface.surface_p8 wired, round 3): cases=1725 passed=1009 failed=0 deferred=716 (surface.surface_cache_p1 490, intersect.surface_intersector_p2 122, intersect.surface_drop_curve 104); --perturb SENSITIVE 1009/1009. The 53 disagreements of the first wiring came from GlobalCurveIntersect building its own surface cache: the hand-built trees swapped into the C++ caches are what upstream's nested GlobalCurveIntersect/GlobalLineIntersect solve on; FindBoundaryStartPoints now hands it the intersector's cache (global_curve_intersect_in), and do_intersection's caches name their surfaces (IntersectionSurface). PR #140 (merge with main, DropAndTrimCurve wired): 6 generated cases (gen0127/0428/0439/0512/1092/1264) reached past the drop and lost the two touching-point curves, because ComputePointValues ran the basic ComputeSingularityPoint, not the SmAdvSurfaceIntersector override (the DISPATCH GAP); fixed (SurfaceIntersector::advanced, adv_compute_singularity_point): 1725 cases, 1087 pass, 0 failed, 638 deferred (surface.surface_cache_p1 490, intersect.surface_intersector_p2 122, intersect.surface_drop_lib_p3 26). Re-run (PR #140, DoTrace wired into DropAndTrimCurve, main b8d7cde51): 1725 cases, 1087 pass, 0 failed, 638 deferred (surface.surface_cache_p1 490, intersect.surface_intersector_p2 122, intersect.surface_drop_lib_p3 26). Wired SmAdvSurfaceIntersector::FindInteriorCurves' ComputePointValues and TraceCurve (base bodies; ComputeSingularityPoint dispatches via the advanced flag): 1725 cases, 1494 pass, 231 deferred -> 1725 cases, 1693 pass, 0 failed, 32 deferred (intersect.surface_drop_lib_p3 30, surface.surface_cache_p1 2).
Goldens
This is committed inventory, not a runtime result or a correctness proof. A golden records what solidcore produced when blessed. Current results require the canonical CI gate, not these counts.
- Golden records
- 1,731
- Stored error outcomes
- 0
- Stored deferrals
- 0
- Stored harness rejections
- 0
- Known-failure entries
- 0
Metadata counts describe fields in the stored records; they are not passes or live failures.
Source at f9704ee3b:
golden JSONL ·
known-failure list.
Dependencies
Depends on: geom.extent3d green geom.global_solver green geom.solution_array green geom.tol green intersect.surface_intersector_p1 green intersect.surface_intersector_p2 partial intersect.surface_intersector_p3 green intersect.surface_intersector_p4 green
Soft dependencies: curve.curve_p2 green curve.curve_p4 green geom.a_object green geom.object green geom.tree green geom.vector3d green surface.surface_cache_p1 green surface.surface_cache_p3 green surface.surface_p2 partial
Dependents: audit.recursion green
Soft dependents: none
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmSurfaceIntersector::DoIntersection | SmSurfaceIntersector.cpp:6106 | 622 | [do_intersection], [AdvSurfaceIntersector::do_intersection_with_caches] |
Module file-header table (3 rows)
| Rust | Upstream |
|---|---|
[do_intersection], [AdvSurfaceIntersector::do_intersection_with_caches] | DoIntersection |
[intersection_surface_caches], [IntersectionSurface] | the smsurf_GetSurfaceCache / GetTree calls at the top of DoIntersection |
[SurfaceIntersector::grazing_box_process], [GrazingBox] | GrazingBoxProcess |
Upstream tests reaching this unit
prog_test:my_test_parallel_projection, prog_test:my_test_tsurf_projection, prog_test:my_test_surface_interface, prog_test:my_test_ssi, prog_test:my_test_tsurf_section, prog_test:my_test_planar_section