surface.surface_p10 green
- Layer
- 30
- Upstream lines
- 2,172
- Functions
- 2
- Rust module
surface::surface::p10
Status history
- todo 2,172 lines
- partial 2,172 lines
- green 2,172 lines
Source: crates/solidcore/src/surface/surface/p10.rs
Upstream: source/SMLib/src/SmSurface.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
PARTIAL (PR #93): difftest 867 cases (67 fixture + 800 generated), 531 pass bit-identical, 0 failed, 336 deferred after merging surface_p4/surface_p5 (blocked by intersect.surface_drop_lib_p1 137, surface.surface_p6 139, surface.surface_point_solve_p3 60; formerly surface.surface_p5 118: SmSurface::DropPoint in the combination's range gap test; surface.surface_p6 115: SmSurface::LocalCurveIntersect in every leaf solve that reaches its guesses, SmSurface::ClassifyIntersectingRangeSolution; surface.surface_p4 72: sm_ClassifyCurveSurfaceXSectPoint for a leading point or two distant points; intersect.surface_drop_lib_p1 47: SmSurface::DropAndTrimCurve for a long range); --perturb 531/531 detected; max_rel_err=0; no absolute floors. The leaf solve compares its early exits (node outside face, disjoint/sliver domains, box and pseudo box misses, rays behind, intervals outside); the combination compares range merging (touching, overlapping, seam, closed curve ends), point merging, point/range culling with null, valid and invalid nodes, small ranges to points. Shim: library SmLSIGlobalSolver on hand-built surface cache trees; verbatim copy of the static combination with a recording stand-in for the static sm_ClassifyCurveSurfaceXSectPoint (cases reaching it are deferred in Rust). Wired UNPORTED(surface.surface_p10) in surface.surface_p2 (LsiGlobalSolver::local_solve); LsiGlobalSolver gained borrowed surface_cache/kernel fields (as CsiGlobalSolver, surface.surface_p9); surface_p9's implicit_iso is pub(super). Original: 2 fns; largest: sm_GlobalCurveIntersectCombineSolutions, SmLSIGlobalSolver::LocalSolve; cycle back-edges (call into later units; stub or co-port): intersect.surface_drop_lib_p1(1); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit Re-run after wiring its surface.surface_p6 stubs (LocalCurveIntersect, ClassifyIntersectingRangeSolution; PR #118): 867 cases, 579 pass, 288 deferred (intersect.surface_drop_curve 137, surface.surface_point_solve_p3 151), 0 failed. Re-run (PR #118 review, after main's surface_drop_curve): 867 cases, 677 pass, 190 deferred (intersect.surface_drop_curve 190), 0 failed. Re-run (PR #118, round 3: implicit_iso over a plane evaluates through the plane): 867 cases, 677 pass, 190 deferred (intersect.surface_drop_curve 190), 0 failed; --perturb SENSITIVE 677/677. Re-run (PR #140, DropAndTrimCurve wired to the real trace, after merging main): 867 cases, 677 pass, 0 failed, 190 deferred (surface.surface_cache_p1 133, intersect.surface_drop_lib_p3 57; the former intersect.surface_drop_curve 190 now defer deeper in the trace). Re-run (PR #140, DoTrace wired into DropAndTrimCurve, main b8d7cde51): 867 cases, 677 pass, 0 failed, 190 deferred (surface.surface_cache_p1 133, intersect.surface_drop_lib_p3 57). GREEN (2026-10-23, PR #587): difftest PASS surface.surface_p10 cases=867 passed=867 failed=0 deferred=0 max_rel_err=0e0 with_values=867 no_values=0 vacuous=0; the former 190 deferrals (surface.surface_cache_p1 133, intersect.surface_drop_lib_p3 57) no longer occur on main 9fd1c67c5 (drop_lib_p3 ones wired by #463; the last UNPORTED(surface.surface_cache_p1) stubs were removed by #457); local rerun and CI run 39923812958 agree.
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
- 867
- 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: curve.curve_p2 green geom.extent1d green geom.extent2d green geom.extent3d green geom.global_solver green geom.pseudo_box green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green surface.surface_cache_p1 green surface.surface_p1 green surface.surface_p2 partial surface.surface_p5 green
Soft dependencies: curve.curve_p3 partial curve.curve_p4 green curve.curve_p6 green curve.iso_curve green curve.line green geom.object green geom.polar_box green geom.tree green surface.surface_p4 green surface.surface_p6 green surface.surface_p7 green
Dependents: none
Soft dependents: surface.surface_p8 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
sm_GlobalCurveIntersectCombineSolutions | SmSurface.cpp:15523 | 1423 | [global_curve_intersect_combine_solutions], [CombineContext] |
SmLSIGlobalSolver::LocalSolve | SmSurface.cpp:18075 | 749 | [LsiGlobalSolver::local_solve_branch] |
Module file-header table (3 rows)
| Rust | Upstream |
|---|---|
[LsiGlobalSolver::local_solve_branch] | SmLSIGlobalSolver::LocalSolve |
[CertifiedLsi], [CertifiedLsi::certified_pass] | (not upstream) |
[global_curve_intersect_combine_solutions], [CombineContext] | sm_GlobalCurveIntersectCombineSolutions (static) |
Upstream tests reaching this unit
prog_test:my_test_surface_closest_point, prog_test:my_test_drop_point, prog_test:my_test_matrix, prog_test:my_test_reversed_line_join, SM_API_test:TestSmCreateRectangle, SM_API_test:TestSmCreateRegularPolygon