solidcore

Units / surface

surface.surface_p11 green

Layer
31
Upstream lines
1,789
Functions
5
Rust module
surface::surface::p11

Status history

Oct 12Nov 25
  1. todo 1,789 lines
  2. partial 1,789 lines
  3. green 1,789 lines

Source: crates/solidcore/src/surface/surface/p11.rs

Upstream: source/SMLib/src/SmSurface.cpp

Port-plan notes

These notes preserve historical port measurements and limitations, not current CI results.

main CI e33985411 (2026-10-23): PASS surface.surface_p11 cases=806 passed=806 failed=0 deferred=0. #76 kernel-aware Surface dispatch (PR #313, 2026-10-21): 600 cases, 600 pass, 0 failed, 0 deferred, max_rel_err 0; before 559 pass / 41 deferred. PARTIAL: difftest 600 generated cases (LocalSurfaceIntersect over Bezier patches and planes: crossing, standing, nearly parallel, tiny and huge scales, sub-domains, guesses on boundaries, plane normals (also zero), previous points, boundary testing; IntersectSurfaceBoundaries of coincident and crossing patches and planes), 498 pass bit-identical, 0 failed, 102 deferred (surface.surface_p8 102: sm_IntersectSrfBndryCrv); --perturb SENSITIVE 498/498; SmCSGlobalSolver/SmSSGlobalSolver::LocalSolve are compared through surface.surface_p7's GlobalCurveSolve/GlobalSurfaceSolve cases (first 16 solutions; minimize, maximize, normalize, signed directed minimize, intersect for nodes) and the intersectors; LiftCurve defers at sm_ExtractIsoCurve (surface.surface_p8) and past it has a dispatch gap for non-B-spline surfaces (CrvOnSurf holds a B-spline, findings.md; marked UNPORTED(curve.crv_on_surf)). Coverage acknowledged, not closed: the shim builds only Bezier patches and planes (the leaf solves are not compared on revolution, curve-bounded, Step or SrfInVolume surfaces); SM_SO_3D_SIGNED_DIRECTED_MAXIMIZE is not generated because sm_SCLocalSolve asserts on it (the Rust side returns InvalidInput, the release C++ continues); LiftCurve has no shim or runner after its first line; some passes compare no values; MAX_SUBDIVISION_NODES (2^20) stays (a surface.surface_p1 case at 1e-4 scale needs more than 2^18). Wired UNPORTED(surface.surface_p11): SmSurface::LocalSurfaceIntersect (intersect.surface_intersector_p1, used by adv_surface_intersector/p3/p4/p5), SmCSGlobalSolver/SmSSGlobalSolver::LocalSolve (surface.surface_p7: global_curve_solve/global_surface_solve now take the kernel and handles; intersect.topology_solver_p2 updated), GlobalSurfaceSolve SM_SR_NODES (intersect.surface_intersector_p4 FindInteriorCurves, via global_surface_solve_with). Wired UNPORTED(surface.surface_p3) after merging main: SmSurface::LocalSurfaceSolve. Bounded surface cache subdivision (surface.surface_cache_p3 MAX_SUBDIVISION_NODES, the 3.5 GB abort). Upstream issues UB-121, WR-99; plane boundary curve type mismatch with surface.surface_p9 recorded in findings.md. 5 fns; largest: SmSurface::LocalSurfaceIntersect, SmSSGlobalSolver::LocalSolve, SmSurface::LiftCurve, SmCSGlobalSolver::LocalSolve; cycle back-edges (call into later units; stub or co-port): surface.surface_p8(2); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit Re-run (PR #118, sm_IntersectSrfBndryCrv and sm_ExtractIsoCurve wired to surface.surface_p8): 600 cases, 559 pass, 41 deferred (curve.iso_curve 41), 0 failed; --perturb SENSITIVE 559/559; the surface.surface_p8 deferrals are gone.; LiftCurve is now compared through blend.fillet_geom_p6 (PR #247: CalcFilletEnd and CalcBlendingRail lifts of up to ~5000 control points, bit-identical with sm_IntersectAndSplit's curve handle, fixed on main by #444). PR #2464: surface kind 3 builds a canonical SmSurfOfRevolution of a line generator (a cylinder) natively too, and six additive cases compare four LSI found points (UVs and deviation) with a plane and two ISB calls that retain the typed v-min circle's arcs; 814/814 pass, 0 deferred, max_rel_err 0, --perturb sensitive 814/814, generated kinds and counts unchanged.

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
814
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.crv_on_surf green curve.curve_cache green curve.curve_p2 green geom.extent1d green geom.extent2d green geom.global_solver green geom.local_solve_nd green geom.object green geom.polar_box green geom.pseudo_box green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green nurbs.b_spline_curve_p1 green surface.surface_cache_p1 green surface.surface_p1 green surface.surface_p2 partial surface.surface_p3 green surface.surface_p5 green surface.surface_p6 green surface.surface_p7 green surface.surface_p9 green

Soft dependencies: curve.composite_curve_p1 green curve.composite_curve_p2 green curve.curve_p4 green curve.curve_p8 green curve.iso_curve green geom.extent3d green geom.geom_utility_p1 green geom.tree green surface.plane_p1 partial

Dependents: primitive.api_surface_ops green topology.api_projection partial topology.brep_constructor green topology.brep_planar_section partial

Soft dependents: blend.fillet_geom_p1 green blend.fillet_geom_p2 green blend.fillet_geom_p4 partial blend.fillet_geom_p5 green blend.fillet_geom_p6 green intersect.adv_surface_intersector green intersect.surface_intersector_p1 green intersect.surface_intersector_p4 green offset.offset_geometry_creation partial topology.brep_p2 green topology.brep_p3 partial topology.brep_p7 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmCSGlobalSolver::LocalSolveSmSurface.cpp:17405246[CsGlobalSolver::local_solve_branch] (and its GlobalSolve impl)
SmSSGlobalSolver::LocalSolveSmSurface.cpp:21019484[SsGlobalSolver::local_solve_branch]
SmSurface::IntersectSurfaceBoundariesSmSurface.cpp:21745174[Surface::intersect_surface_boundaries], [BoundaryIntersections]
SmSurface::LiftCurveSmSurface.cpp:24055279[Surface::lift_curve], [LiftedCurve]
SmSurface::LocalSurfaceIntersectSmSurface.cpp:27440606[Surface::local_surface_intersect], [SurfaceIntersection], [LocalSurfaceIntersectOptions]
Module file-header table (5 rows)
RustUpstream
[Surface::local_surface_intersect], [SurfaceIntersection], [LocalSurfaceIntersectOptions]SmSurface::LocalSurfaceIntersect (declared virtual; no class overrides it)
[CsGlobalSolver::local_solve_branch] (and its GlobalSolve impl)SmCSGlobalSolver::LocalSolve
[SsGlobalSolver::local_solve_branch]SmSSGlobalSolver::LocalSolve
[Surface::intersect_surface_boundaries], [BoundaryIntersections]SmSurface::IntersectSurfaceBoundaries (not virtual)
[Surface::lift_curve], [LiftedCurve]SmSurface::LiftCurve (not virtual)

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