intersect.surface_intersector_p4 green
- Layer
- 35
- Upstream lines
- 1,570
- Functions
- 4
- Rust module
intersect::surface_intersector::p4
Status history
- todo 1,570 lines
- partial 1,570 lines
- green 1,570 lines
Source: crates/solidcore/src/intersect/surface_intersector/p4.rs
Upstream: source/SMLib/src/SmSurfaceIntersector.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
#76 kernel-aware Surface dispatch (PR #313, 2026-10-21): 1542 cases, 1542 pass, 0 failed, 0 deferred, max_rel_err 0; before 1192 pass / 350 deferred. 4 fns; largest: SmSurfaceIntersector::TraceCurve, SmSurfaceIntersector::DoPointIntersection, SmSurfaceIntersector::DoLawIntersection, SmSurfaceIntersector::FindInteriorCurves; unit-SCC #22 (220 units); 150 upstream test entry points reach this unit; PARTIAL (PR #70): difftest 1542 cases (22 inline edge cases, 20 fixture cases from my_test_planar_section on shovel.srf, 1500 generated programs on plane pairs crossing down to 1e-6 rad, coincident, parallel a gap apart or the same object, scales 1e-6..1e5: DoPointIntersection through 0-5 points with directions/extensions/tolerances, TraceCurve from evaluated or raw points with curve points, targets and curves to avoid, then FlushCurve, DoLawIntersection point counts, FindInteriorCurves; a few on B-spline and curve-bounded surfaces), 938 pass bit-identical (max_rel_err 0), 604 deferred (surface.surface_p11 578, surface.surface_p3 26); --perturb SENSITIVE 938/938. UNPORTED stubs: SmSurface::IsSingularity of non-planes (surface.surface_p5); the SM_SR_NODES node pairs of FindInteriorCurves' GlobalSurfaceSolve (surface.surface_p11; the pair walk is find_interior_curves_from_node_pairs). DoLawIntersection's SmOffsetSurface check sees SurfaceKind::OffsetSurface (surface.offset_surface, PR #62); past it the law points wait on SmFilletLaw::Evaluate (blend.fillet_executive_p1). Back-edges NOT wired: SmAdvSurfaceIntersector's TraceCurve (intersect/adv_surface_intersector.rs) and SmSurface::PointBasedSurfaceIntersect's DoPointIntersection (surface/surface/p2.rs) run on the advanced intersector, whose ComputeSingularityPoint override the basic part 1-4 methods cannot dispatch to yet; the stubs stay tagged UNPORTED(intersect.surface_intersector_p4) with that reason. surface.surface_p11 (PR #120, after merging main with surface.surface_p3): cases=1542 passed=1177 failed=0 deferred=365 (surface.surface_p8 365); FindInteriorCurves runs the SM_SR_NODES global surface solve; --perturb SENSITIVE. || PR #140: 4 fns; largest: SmSurfaceIntersector::TraceCurve, SmSurfaceIntersector::DoPointIntersection, SmSurfaceIntersector::DoLawIntersection, SmSurfaceIntersector::FindInteriorCurves; unit-SCC #22 (220 units); 150 upstream test entry points reach this unit; PARTIAL (PR #70): difftest 1542 cases (22 inline edge cases, 20 fixture cases from my_test_planar_section on shovel.srf, 1500 generated programs on plane pairs crossing down to 1e-6 rad, coincident, parallel a gap apart or the same object, scales 1e-6..1e5: DoPointIntersection through 0-5 points with directions/extensions/tolerances, TraceCurve from evaluated or raw points with curve points, targets and curves to avoid, then FlushCurve, DoLawIntersection point counts, FindInteriorCurves; a few on B-spline and curve-bounded surfaces), 938 pass bit-identical (max_rel_err 0), 604 deferred (surface.surface_p11 578, surface.surface_p3 26); --perturb SENSITIVE 938/938. UNPORTED stubs: SmSurface::IsSingularity of non-planes (surface.surface_p5); the SM_SR_NODES node pairs of FindInteriorCurves' GlobalSurfaceSolve (surface.surface_p11; the pair walk is find_interior_curves_from_node_pairs). DoLawIntersection's SmOffsetSurface check sees SurfaceKind::OffsetSurface (surface.offset_surface, PR #62); past it the law points wait on SmFilletLaw::Evaluate (blend.fillet_executive_p1). Back-edges NOT wired: SmAdvSurfaceIntersector's TraceCurve (intersect/adv_surface_intersector.rs) and SmSurface::PointBasedSurfaceIntersect's DoPointIntersection (surface/surface/p2.rs) run on the advanced intersector, whose ComputeSingularityPoint override the basic part 1-4 methods cannot dispatch to yet; the stubs stay tagged UNPORTED(intersect.surface_intersector_p4) with that reason. surface.surface_p11 (PR #120, after merging main with surface.surface_p3): cases=1542 passed=1177 failed=0 deferred=365 (surface.surface_p8 365); FindInteriorCurves runs the SM_SR_NODES global surface solve; --perturb SENSITIVE. PR #140 (ComputeSingularityPoint dispatch on advanced intersectors): 1542 cases, 1192 pass, 0 failed, 350 deferred (curve.iso_curve 350). TOUCHED (blend.fillet_solver_p4, PR #212): DoPointIntersection, TraceCurve and TestPoint take their virtual calls through the IntersectorVirtuals trait (do_point_intersection_with); 1542/1542 pass.
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,542
- 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.extent2d green geom.extent3d green geom.solution_array green geom.vector2d green geom.vector3d green intersect.surface_intersector_p1 green intersect.surface_intersector_p2 partial intersect.surface_intersector_p3 green
Soft dependencies: curve.curve_cache green curve.curve_p2 green curve.hermite_curve green geom.a_object green geom.extent1d green geom.object green geom.tol green geom.tree green nurbs.b_spline_curve_p1 green nurbs.b_spline_curve_p3 green surface.surface_cache_p1 green surface.surface_p11 green surface.surface_p2 partial surface.surface_p5 green surface.surface_p7 green
Dependents: intersect.surface_intersector_p5 green
Soft dependents: blend.fillet_geom_p3 green blend.fillet_solver_p4 green blend.fillet_standard_solver_p2 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmSurfaceIntersector::TraceCurve | SmSurfaceIntersector.cpp:4920 | 649 | [SurfaceIntersector::trace_curve] |
SmSurfaceIntersector::FindInteriorCurves | SmSurfaceIntersector.cpp:5935 | 159 | [SurfaceIntersector::trace_back] |
SmSurfaceIntersector::DoPointIntersection | SmSurfaceIntersector.cpp:6763 | 492 | [SurfaceIntersector::do_point_intersection], [PointIntersectionOptions] |
SmSurfaceIntersector::DoLawIntersection | SmSurfaceIntersector.cpp:7817 | 270 | [SurfaceIntersector::do_law_intersection], [LawIntersectionOptions] |
Module file-header table (8 rows)
| Rust | Upstream |
|---|---|
[SurfaceIntersector::trace_curve] | TraceCurve |
[SurfaceIntersector::trace_back] | the reverse/trace/reverse block of SmSurfaceIntersector::FindInteriorCurves and DoIntersection, and of SmAdvSurfaceIntersector::FindInteriorCurves |
[SurfaceIntersector::find_interior_curves], [SurfaceIntersector::find_interior_curves_from_node_pairs], [InteriorNodePair] | FindInteriorCurves |
[SurfaceIntersector::do_point_intersection], [PointIntersectionOptions] | DoPointIntersection |
[SurfaceIntersector::do_law_intersection], [LawIntersectionOptions] | DoLawIntersection |
SurfaceIntersector::span_on_found_curve, SurfaceIntersector::reaches_found_curve_end, stop_at_found_curve_end (crate/private) | the SolidCraft fork's bSpanOnFoundCurve, bReachesFoundCurveEnd lambdas of TraceCurve and its loop-top stop (WR-76) |
[IntersectionCurve] | the curve, type and deviation out-params of both drivers |
[IntersectorVirtuals], [do_point_intersection_with], [trace_curve_with], [do_law_intersection_with] | the virtual calls of DoPointIntersection / TraceCurve / DoLawIntersection (this->ComputePointValues(..), ..) on a derived intersector |
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