surface.surface_point_solve_p2 green
- Layer
- 33
- Upstream lines
- 1,882
- Functions
- 19
- Rust module
surface::surface_point_solve::p2
Status history
- todo 1,882 lines
- partial 1,882 lines
- green 1,882 lines
Source: crates/solidcore/src/surface/surface_point_solve/p2.rs
Upstream: source/SMLib/src/SmSurfacePointSolve.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
near_flat_singular_normal fixture (2026-10-30, #1570 mat0076): 13 cases at a singular guess on a near-flat patch (Solve, RoughGuess, RefineGuess, norms, Converged, Step); 5 failed before the SmSurfaceEval::EvalNormal fix (surface.surface_p4); difftest 1366 cases, 1366 pass, 0 deferred. main CI e33985411 (2026-10-23): PASS surface.surface_point_solve_p2 cases=1353 passed=1353 failed=0 deferred=0. 19 fns; largest: SmSurfPtGlobalSolver::FindPolygonGuess, SmSurfPtGlobalSolver::Solve, SmSurfPtGlobalSolver::RefineGuess, SmSurfPtSolveStepper::Step; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; PARTIAL (PR #66): difftest 1320 cases (180 inline on upstream Surface.sms with the my_test_surface_closest_point points; 900 generated: planes, B-splines incl. closed / rational / bilinear / zigzag / huge / tiny nets, curve-bounded and STEP-wrapped surfaces, sub-domains, the 5 solver operations; 240 rev_gen cases on real SmSurfOfRevolution surfaces, some STEP-wrapped; all 15 ops: FindRoughGuess, FindPolygonGuess, RefineGuess, RefinePatchByGrid, RefineGuessByGrid, CheckSeams, Solve, AdjustStep, ErrorNorm/IsSingular, Converged, PushingBoundary/ConvergedOnBoundary, SnapToBoundaries, Step, LineSearch, LineSearchBracketted), 1230 pass bit-identical, 90 deferred (surface.surface_p4 63: SmSurface::IsOnSeam, SmSurfaceEval::Normal; surface.surface_p5 27: SmSurface::LocalPointSolve, so every Solve with a rough guess); SmSurface::InvertPointNearSingularity stubbed UNPORTED(surface.surface_p8); --perturb SENSITIVE Re-run (PR #52, after merging surface_p4/#49 and surface_p5/#50): 1320 cases, 1283 pass, 37 deferred (curve.iso_curve 24, surface.surface_point_solve_p3 13). Re-run after merging PR #106 (surface.surface_point_solve_p3 wired, 2026-10-15): 1345 cases, 1341 pass, 4 deferred (surface.surface_p8 4), 0 failed, max_rel_err 0. Re-run after wiring PR #118 (surface.surface_p8 and its back-edges, GlobalPointSolve_0 included): 1345 cases, 1345 pass, 0 deferred, 0 failed, max_rel_err 0; green.
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,362
- Stored error outcomes
- 0
- Stored deferrals
- 0
- Stored harness rejections
- 0
- Known-failure entries
- 4
Metadata counts describe fields in the stored records; they are not passes or live failures.
Known failures (not blessed)
gen0072: tangency-labs/solidcraft#13684: Maximize (global solve) reports distance 0.0005370311733797315 at UV (0.10470034934041532, 0.000875123786742732), but in-domain UV (0.34440676178786767, 0.44945027850974706) has distance 0.0007574235061578482 (tolerance 1e-10)gen0546: tangency-labs/solidcraft#13684: Maximize (global solve) reports distance 2.5001639007536616 at UV (1.0, 0.0), but in-domain UV (1.0, 1.0) has distance 2.867841037711564 (tolerance 1e-6)gen0808: tangency-labs/solidcraft#13684: Maximize reports 9.059573038386699, but in-domain UV (1, 2.6941425697089785) has distance 10.036238095784272; main already reports a nonmaximum (9.169142033546262)rev_gen0057: tangency-labs/solidcraft#13684: Maximize reports 3.027869047705328, but in-domain UV (0.6, 0) has distance 10.106374942763338; main already reports a nonmaximum (1.9529663001246003)
Source at f9704ee3b:
golden JSONL ·
known-failure list.
Dependencies
Depends on: geom.extent1d green geom.extent2d green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green nurbs.b_spline_surface_p1 green surface.surface_p2 partial surface.surface_point_solve_p1 green
Soft dependencies: geom.geom_utility_p1 green geom.object green surface.surface_p1 green surface.surface_p5 green surface.surface_p8 green
Dependents: surface.surface_point_solve_p3 green
Soft dependents: none
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmSurfPtGlobalSolver::FindRoughGuess | SmSurfacePointSolve.cpp:637 | 122 | [SurfPtGlobalSolver::find_rough_guess], [RoughGuess] |
SmSurfPtGlobalSolver::FindPolygonGuess | SmSurfacePointSolve.cpp:773 | 232 | [SurfPtGlobalSolver::find_polygon_guess], [PolygonGuess] |
SmSurfPtGlobalSolver::RefineGuess | SmSurfacePointSolve.cpp:1706 | 179 | [SurfPtGlobalSolver::refine_guess] |
SmSurfPtGlobalSolver::RefinePatchByGrid | SmSurfacePointSolve.cpp:2001 | 88 | [SurfPtGlobalSolver::refine_patch_by_grid] |
SmSurfPtGlobalSolver::RefineGuessByGrid | SmSurfacePointSolve.cpp:2100 | 106 | [SurfPtGlobalSolver::refine_guess_by_grid] |
SmSurfPtGlobalSolver::CheckSeams | SmSurfacePointSolve.cpp:2510 | 150 | [SurfPtGlobalSolver::check_seams] |
SmSurfPtGlobalSolver::Solve | SmSurfacePointSolve.cpp:2926 | 195 | [SurfPtGlobalSolver::solve] |
SmSurfPtSolveStepper::SmSurfPtSolveStepper | SmSurfacePointSolve.cpp:3183 | 12 | [SurfPtSolveStepper::copy_of] (in p1) |
SmSurfPtSolveStepper::AdjustStep | SmSurfacePointSolve.cpp:3299 | 113 | [SurfPtSolveStepper::adjust_step] |
SmSurfPtSolveStepper::ErrorNorm | SmSurfacePointSolve.cpp:3472 | 28 | [SurfPtSolveStepper::error_norm] |
SmSurfPtSolveStepper::Converged | SmSurfacePointSolve.cpp:3511 | 7 | [SurfPtSolveStepper::converged], [SurfPtSolveStepper::converged_with] |
SmSurfPtSolveStepper::Converged | SmSurfacePointSolve.cpp:3525 | 58 | [SurfPtSolveStepper::converged], [SurfPtSolveStepper::converged_with] |
SmSurfPtSolveStepper::IsSingular | SmSurfacePointSolve.cpp:3671 | 26 | [SurfPtSolveStepper::is_singular] |
SmSurfPtSolveStepper::Step | SmSurfacePointSolve.cpp:3713 | 173 | [SurfPtSolveStepper::step] |
SmSurfPtSolveStepper::LineSearch | SmSurfacePointSolve.cpp:3993 | 139 | [SurfPtSolveStepper::line_search] |
SmSurfPtSolveStepper::LineSearchBracketted | SmSurfacePointSolve.cpp:4138 | 86 | [SurfPtSolveStepper::line_search_bracketted] |
SmSurfPtSolveStepper::ConvergedOnBoundary | SmSurfacePointSolve.cpp:4236 | 57 | [SurfPtSolveStepper::converged_on_boundary] |
SmSurfPtSolveStepper::PushingBoundary | SmSurfacePointSolve.cpp:4325 | 62 | [SurfPtSolveStepper::pushing_boundary] |
SmSurfPtSolveStepper::SnapToBoundaries | SmSurfacePointSolve.cpp:4396 | 49 | [SurfPtSolveStepper::snap_to_boundaries] |
Module file-header table (18 rows)
| Rust | Upstream |
|---|---|
[SurfPtGlobalSolver::find_rough_guess], [RoughGuess] | SmSurfPtGlobalSolver::FindRoughGuess |
[SurfPtGlobalSolver::find_polygon_guess], [PolygonGuess] | SmSurfPtGlobalSolver::FindPolygonGuess |
[SurfPtGlobalSolver::refine_guess] | SmSurfPtGlobalSolver::RefineGuess |
[SurfPtGlobalSolver::refine_patch_by_grid] | SmSurfPtGlobalSolver::RefinePatchByGrid |
[SurfPtGlobalSolver::refine_guess_by_grid] | SmSurfPtGlobalSolver::RefineGuessByGrid |
[SurfPtGlobalSolver::check_seams] | SmSurfPtGlobalSolver::CheckSeams |
[SurfPtGlobalSolver::solve] | SmSurfPtGlobalSolver::Solve |
[SurfPtSolveStepper::copy_of] (in p1) | SmSurfPtSolveStepper copy constructor |
[SurfPtSolveStepper::adjust_step] | SmSurfPtSolveStepper::AdjustStep |
[SurfPtSolveStepper::error_norm] | SmSurfPtSolveStepper::ErrorNorm |
[SurfPtSolveStepper::converged], [SurfPtSolveStepper::converged_with] | Converged(double), Converged(SmBoolean) |
[SurfPtSolveStepper::is_singular] | SmSurfPtSolveStepper::IsSingular |
[SurfPtSolveStepper::step] | SmSurfPtSolveStepper::Step |
[SurfPtSolveStepper::line_search] | SmSurfPtSolveStepper::LineSearch |
[SurfPtSolveStepper::line_search_bracketted] | SmSurfPtSolveStepper::LineSearchBracketted |
[SurfPtSolveStepper::converged_on_boundary] | SmSurfPtSolveStepper::ConvergedOnBoundary |
[SurfPtSolveStepper::pushing_boundary] | SmSurfPtSolveStepper::PushingBoundary |
[SurfPtSolveStepper::snap_to_boundaries] | SmSurfPtSolveStepper::SnapToBoundaries |
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