solidcore

Units / intersect

intersect.surface_intersector_p2 partial

Layer
33
Upstream lines
1,677
Functions
6
Rust module
intersect::surface_intersector::p2

Status history

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

Source: crates/solidcore/src/intersect/surface_intersector/p2.rs

Upstream: source/SMLib/src/SmSurfaceIntersector.cpp

Port-plan notes

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

[2026-11-04 (#2400): PARTIAL, 40 known mismatches: the blend corner is the default and the old corner code is deleted, so these cases no longer agree with C++ v1.0.1's pinned corner (plan/findings/blend.fillet_corner_p3--blend-corner-default-diverges-from-cpp-v1-0-1-2026-11-04.md)] 6 fns; largest: SmSurfaceIntersector::ClassifyBoundaryStartPointIntersection, SmSurfaceIntersector::ComputePointValues, SmSurfaceIntersector::DoBoundaryPlaneTest, SmSurfaceIntersector::FlushCurve; unit-SCC #22 (220 units); 150 upstream test entry points reach this unit; difftest PR #42: 1660 cases (1508 pass, 152 deferred: blend.fillet_executive_p1(11), surface.surface_p3(36), surface.surface_p5(105)); EvaluateNormal wired to surface.surface_p7; shim covers SmPlane, SmBSplineSurface, SmCurveBoundedSurface; fixtures from my_test_planar_section (shovel.srf) plus 38 + 105 review adversarial cases; FlushCurve unguarded (decreasing knots compare the CreateCanonical SM_ERR path); gap walk capped at MAX_GAP_SAMPLES (see plan/findings.md) Re-run with surface.surface_p5's back-edges wired (PR #50): cases=1660 passed=1508 failed=0 deferred=152 max_rel_err=0e0 blocked_by=blend.fillet_executive_p1(11),intersect.surface_intersector_p3(10),surface.surface_p3(131). Re-run (PR #52, after merging surface_p4/#49 and surface_p5/#50): 1660 cases, 1636 pass, 24 deferred (blend.fillet_executive_p1 12, surface.surface_point_solve_p3 12). Re-run after merging PR #106 (surface.surface_point_solve_p3 wired, 2026-10-15): 1660 cases, 1648 pass, 12 deferred (blend.fillet_executive_p1 12), 0 failed, max_rel_err 0. PR #140: ComputePointValues calls the SmAdvSurfaceIntersector ComputeSingularityPoint override when the base's advanced flag is set (any failure SM_ERR, as upstream): 1660 cases, 1648 pass, 0 failed, 12 deferred. Fillet law wired (EvaluateLawPoint evaluates the SmFilletLaw and sets the shared offset distances; the runner passes the shim's default-constructed base SmFilletLaw): 1660 cases, 1660 pass, 0 failed, 0 deferred, max_rel_err 0 (before: 1648 pass, 12 deferred at SmFilletLaw::Evaluate). GREEN. UPDATE (difftest: analytic DoBoundaryPlaneTest): fixtures/intersect.surface_intersector_p2/analytic_bpt.json runs DoBoundaryPlaneTest on real SmCylinder / SmCone / SmSphere / SmTorus pairs (built as --ssi-corpus builds them; natural domains from each side's own GetNaturalUVDomain; each C++ case in a fresh process). The SM_CAST_PTR(SmBSplineSurface) there accepts every analytic kind (#1612), so these are the first cases comparing that test and the analytic bounding planes (surface.surface_cache_p1 ComputeBoundingPlanes) against C++. Counts: see the PR's difftest summary.

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,686
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.matrix green geom.solution_array green geom.vector2d green geom.vector3d green intersect.surface_intersector_p1 green nurbs.b_spline_curve_p1 green surface.surface_p2 partial

Soft dependencies: curve.curve_p8 green geom.extent3d green geom.object green geom.tol green nurbs.b_spline_curve_n_lib green surface.surface_cache_p1 green surface.surface_cache_p2 green surface.surface_p3 green surface.surface_p5 green surface.surface_p7 green

Dependents: intersect.surface_intersector_p3 green intersect.surface_intersector_p4 green intersect.surface_intersector_p5 green

Soft dependents: none

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmSurfaceIntersector::DoBoundaryPlaneTestSmSurfaceIntersector.cpp:763286[SurfaceIntersector::do_boundary_plane_test], [BoundaryPlaneTestResult]
SmSurfaceIntersector::ComputePointValuesSmSurfaceIntersector.cpp:2443458[SurfaceIntersector::compute_point_values]
SmSurfaceIntersector::FlushCurveSmSurfaceIntersector.cpp:5658270[SurfaceIntersector::flush_curve], [TsectCurves]
SmSurfaceIntersector::ComputeLawPointValuesSmSurfaceIntersector.cpp:7610130[SurfaceIntersector::compute_law_point_values], [compute_law_point_values_with], [LawPointOptions]
SmSurfaceIntersector::ClassifyBoundaryStartPointIntersectionSmSurfaceIntersector.cpp:8127489[SurfaceIntersector::classify_boundary_start_point_intersection]
sm_IsPointUniqueSmSurfaceIntersector.cpp:865544[is_point_unique]
Module file-header table (6 rows)
RustUpstream
[SurfaceIntersector::do_boundary_plane_test], [BoundaryPlaneTestResult]DoBoundaryPlaneTest, SmBoundaryPlaneTestResult
[SurfaceIntersector::compute_point_values]ComputePointValues
[SurfaceIntersector::flush_curve], [TsectCurves]FlushCurve and its output arrays
[SurfaceIntersector::compute_law_point_values], [compute_law_point_values_with], [LawPointOptions]ComputeLawPointValues
[SurfaceIntersector::classify_boundary_start_point_intersection]ClassifyBoundaryStartPointIntersection
[is_point_unique]sm_IsPointUnique (static)

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