blend.fillet_geom_p2 green
- Layer
- 62
- Upstream lines
- 2,077
- Functions
- 10
- Rust module
blend::fillet_geom::p2
Status history
- todo 2,077 lines
- partial 2,077 lines
- green 2,077 lines
Source: crates/solidcore/src/blend/fillet_geom/p2.rs
Upstream: source/SMLib/src/SmFilletGeom.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
Face-surface drops and lifts (2026-10-31): CalcRailRailInterpolation drops onto and lifts from the original face's own surface (clone_for_evaluation and BrepFaceServices with the face's handle; one services object over the drop, lift and re-drop, as upstream keeps the cache in the surface's slot); TrimSrfCache::build_tree_with_face returns the disjoint face domain as the upstream status SM_ERR_INVALID_INPUT so the cache factory falls back. The RailRail runner builds the original face as the shim does (CreateFaceFromSurface over the natural domain, SetTolerance(SmZoneTol3d)) and adds a railrail stream of 800 cases with its own seeds. difftest: 1151 cases, 1151 pass, 0 deferred, 0 failed, max_rel_err 0 (the 351 earlier cases unchanged). See plan/findings/blend.fillet_geom_p6--addendum-2026-10-28-face-handle-context-wired--addendum-2026-10-31-rail-rail-interpolation-face-surface.md. Corner accessors wired (PR #747, 2026-10-24): the vertex calculators and CalcRailRailInterpolation read the SmFilletCorner record through CornerLookup (no UNPORTED(blend.fillet_corner_p1) left); RailRail cases may carry a corner with a fillet edge list (shim P2Corner, SM_FCR_UNKNOWN): 31 corner cases, 12 of them with more than four edges compare the full interpolation. difftest: 351 cases, 351 pass, 0 deferred, 0 failed, max_rel_err 0. PointBasedSurfaceIntersect wired to DoPointIntersection (area 6b, 2026-10-22): 351 cases, 316 pass, 35 deferred (intersect.surface_drop_lib_p3 33, curve.crv_on_surf 2; intersect.surface_intersector_p4 30 -> 0), 0 failed. PARTIAL (PR #263): difftest 351 cases (51 fixtures in fixtures/blend.fillet_geom_p2/cases.json and review_pr208.json, 300 generated at 1e-6..1e6 scales incl. coincident/parallel/disjoint-domain planes, tiny/negative tolerances, zero directions, reversed and coincident points, sub-domain rails), 220 pass bit-identical (max_rel_err 0, with_values 220, no_values 0; the original 350-case baseline includes 125 status-0 runs: sm_SrfSrfIntersection plane/plane 55 and B-spline/B-spline 34, CalcRailRailInterpolation 24, UpdateSplitFace 12; 94 baseline upstream error statuses; PR #208 adds a start-only plane fixture comparing 60 values bit-identically), 0 failed, 131 deferred (surface.surface_cache_p1 54, intersect.surface_drop_lib_p3 33, intersect.surface_intersector_p2 23, intersect.surface_intersector_p4 19, curve.crv_on_surf 2); --perturb SENSITIVE 220/220. The four vertex calculators (CalcRailIntRail, CalcRailIntEdgeuse, CalcVertOnCrossSection, CalcSetBackVert) are compared on their no-corner null-pointer exit only (35 cases): past it they read the corner, UNPORTED(blend.fillet_corner_p1); their bodies are ported and stop at stubs for blend.fillet_solver_p2 (RailRailIntersect, PointOnPlaneSolve), blend.fillet_geom_p6 (GetRailIndexOfSideEU, RailEdgeuseIntersect, ShouldSwapFaces), blend.fillet_executive_p2 (SmTemporaryRadiusChange::SetUp) and intersect.surface_drop_lib_p3 (SmSurface::DropCurve off planes). Built on PR #256 (blend.fillet_corner_p3, carrying #252, #147, #192); wires the sm_SrfSrfIntersection stubs of blend.fillet_geom_p4 and blend.fillet_solver_p1 (re-run: both partial, 0 failed). Merge fix: SmFilletGeom::MakeFaceBrep (p4) takes the NotifyEnv the face makers now need. No co-ports. Shim is compiled into blend_fillet_geom_p1.cpp's translation unit for the file-static helpers. Plan notes: 10 fns; largest: SmFilletVertex::CalcRailIntEdgeuse, SmFilletEdge::CalcRailRailInterpolation, sm_SrfSrfIntersection, SmFilletVertex::CalcVertOnCrossSection; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit PR #208 integration: calc_rail_int_edgeuse_with_solver shares the existing CalcRailIntEdgeuse body with indexed solver tables, preserving the live caller solver and its real id; geometry-owned offsets precede lookup, unresolved adjacent solver ids return InvalidInput. The p5 caller now delegates here; corner-dependent solve branches remain deferred on blend.fillet_corner_p1.; UPDATE (PR #247, blend.fillet_geom_p6): GetRailIndexOfSideEU, RailEdgeuseIntersect (now stopping at SmFilletSolver::RailEdgeuseIntersect, blend.fillet_solver_p2) and ShouldSwapFaces wired; UpdateSplitFace takes the kernel, target and corner table. Re-run unchanged: 350 cases, 219 pass, 0 failed, 131 deferred Wired SmAdvSurfaceIntersector::FindInteriorCurves' ComputePointValues and TraceCurve (base bodies; ComputeSingularityPoint dispatches via the advanced flag): 351 cases, 257 pass, 94 deferred -> 351 cases, 286 pass, 0 failed, 65 deferred (intersect.surface_drop_lib_p3 33, intersect.surface_intersector_p4 30, curve.crv_on_surf 2). GREEN (2026-10-23, PR #600): difftest PASS blend.fillet_geom_p2 cases=351 passed=351 failed=0 deferred=0 max_rel_err=0e0 with_values=351 no_values=0 vacuous=0; the former 35 blend.fillet_geom_p2 deferrals (intersect.surface_drop_lib_p3 33, curve.crv_on_surf 2) no longer occur on main 38b0745b3 (crv_on_surf ones wired by #554; others unknown); local rerun and CI run 39935703236 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
- 1,151
- 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: blend.fillet_corner_p1 green blend.fillet_geom_p1 green blend.fillet_geom_p6 green blend.fillet_solver_p1 green curve.curve_p2 green geom.extent1d green geom.object green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green nurbs.b_spline_curve_p1 green surface.offset_surface green surface.surface_p2 partial topology.edge green topology.edgeuse_p1 green topology.vertex green topology.vertexuse green
Soft dependencies: blend.fillet_executive_p2 green blend.fillet_solver_p2 green curve.curve_p3 partial curve.curve_p6 green geom.extent2d green intersect.point_class green intersect.surface_drop_lib_p3 green intersect.surface_intersector_p1 green nurbs.b_spline_curve_n_lib green nurbs.b_spline_surface_p1 green surface.plane_p1 partial surface.plane_p2 green surface.surface_p11 green surface.surface_p4 green topology.edgeuse_p3 green topology.face_p2 partial
Dependents: blend.fillet_corner_p2 partial blend.fillet_geom_p5 green
Soft dependents: none
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
sm_SrfSrfIntersection | SmFilletGeom.cpp:605 | 431 | [srf_srf_intersection], [SrfSrfCurves], [SrfSrfOptions] |
SmFilletVertex::SmFilletVertex | SmFilletGeom.cpp:1314 | 13 | [FilletVertex::new](super::p1::FilletVertex::new) (in p1) |
SmFilletVertex::CalcRailIntRail | SmFilletGeom.cpp:1465 | 177 | [FilletBrep::calc_rail_int_rail] |
SmFilletVertex::CalcRailIntEdgeuse | SmFilletGeom.cpp:1739 | 592 | [FilletBrep::calc_rail_int_edgeuse] |
SmFilletVertex::CalcVertOnCrossSection | SmFilletGeom.cpp:3119 | 190 | [FilletBrep::calc_vert_on_cross_section] |
SmFilletVertex::CalcSetBackVert | SmFilletGeom.cpp:3315 | 113 | [FilletBrep::calc_set_back_vert] |
SmFilletEdge::SmFilletEdge | SmFilletGeom.cpp:5148 | 16 | [FilletBrep::new_fillet_edge](super::p1::FilletBrep::new_fillet_edge) (in p1) |
SmFilletEdge::CalcRailRailInterpolation | SmFilletGeom.cpp:6665 | 492 | [FilletBrep::calc_rail_rail_interpolation] |
SmFilletEdge::UpdateSplitFace | SmFilletGeom.cpp:8549 | 36 | [FilletBrep::update_edge_split_face] |
SmFilletGeom::~SmFilletGeom | SmFilletGeom.cpp:9038 | 17 | [FilletBrep::destroy_geom] |
Module file-header table (11 rows)
| Rust | Upstream |
|---|---|
[srf_srf_intersection], [SrfSrfCurves], [SrfSrfOptions] | sm_SrfSrfIntersection |
[FilletVertex::new](super::p1::FilletVertex::new) (in p1) | SmFilletVertex::SmFilletVertex |
[FilletBrep::calc_rail_int_rail] | SmFilletVertex::CalcRailIntRail |
[FilletBrep::calc_rail_int_edgeuse] | SmFilletVertex::CalcRailIntEdgeuse |
[FilletBrep::calc_vert_on_cross_section] | SmFilletVertex::CalcVertOnCrossSection |
[FilletBrep::calc_set_back_vert] | SmFilletVertex::CalcSetBackVert |
[FilletBrep::calc_join_section] | the fork's SmFilletVertex::CalcJoinSection (SmBlendCornerJoin.cpp, 543d25a; WR-697) |
[FilletBrep::new_fillet_edge](super::p1::FilletBrep::new_fillet_edge) (in p1) | SmFilletEdge::SmFilletEdge |
[FilletBrep::calc_rail_rail_interpolation] | SmFilletEdge::CalcRailRailInterpolation |
[FilletBrep::update_edge_split_face] | SmFilletEdge::UpdateSplitFace |
[FilletBrep::destroy_geom] | SmFilletGeom::~SmFilletGeom |
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