blend.fillet_standard_solver_p2 green
- Layer
- 60
- Upstream lines
- 1,989
- Functions
- 17
- Rust module
blend::fillet_standard_solver::p2
Status history
- todo 1,989 lines
- partial 1,989 lines
- green 1,989 lines
Source: crates/solidcore/src/blend/fillet_standard_solver/p2.rs
Upstream: source/SMLib/src/SmFilletStandardSolver.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
Contextual constant-radius LoadInitialValues uses actual selected-geometry offsets through borrowed hooks, including other-rail identity and out-of-bounds restoration. The ordinary Default geometry passes the real first-corner checkpoint; the tangent-rollover FVU guess (SmFilletStandardSolver.cpp:493-528) is ported for every constant-radius solver: each scope that sets the geometry for the surfaces hands the solver that geometry's rail guesses (PR #1269), compared by the 400 rollover cases (SmSurfaceSurfaceFS with a pseudo-B-rep geometry for the surfaces; about 240 take the guess, 235 fail with it disabled). PR #439 (continues #265; developed on #303, now on main). difftest: 405 cases (400 generated + 5 fixtures), 373 pass, 0 fail, 27 deferred (surface.surface_p2(13), blend.fillet_executive_p1(8): SmFilletLaw::Evaluate via DoLawIntersection in ReCalcFilletGeom, surface.surf_of_extrusion_p2(5), intersect.surface_drop_lib_p3(1)), 5 rejected; --perturb SENSITIVE 373/373; --fuzz 2000 differs=0. FinishConstruction wired (follow-up to #439: the constructors take the pseudo B-rep and solver id, add the default fillet geometry and call finish_construction where upstream does; the CD edge-use and Ss ops compare that geometry; case counts unchanged). Kept stubs: SetEdgeArcLength (blend.fillet_executive_p1), CalcFilletGeom tail (StepSolve: blend.fillet_solver_p3, justified in findings; GetPseudoBrep: blend.fillet_executive_p1). PARTIAL (PR #265, 2026-10-20): difftest 405 cases (5 fixtures, 400 generated): 388 pass (all compare 3+ values), 0 failed, 17 deferred (surface.surface_p2 9, topology.brep_p10 5, intersect.surface_drop_lib_p3 2, surface.surf_of_extrusion_p2 1: B-rep surface kinds of the edge-use cases), max_rel_err 0, --perturb SENSITIVE 388/388; 3000 seeds: 2893 pass, 0 failed, 112 deferred, max_rel_err 3.8e-16. The earlier disagreement (fx_a / gen0180 / fx_d_guess, LoadInitialValues with extension factor 0.1) was surface.offset_surface's &self evaluators dropping the base extension they make, which upstream's const evaluators store (SmOffsetSurface.cpp:710-713, :1064-1068): a point solve that leaves the base domain sees the extended natural domain from then on; fixed there (plan/findings.md). Wired after #168 / #192 merged: SmFilletSolver::SetupOffsetExtension (base solvers), SmFilletSphereSolveENFO::Evaluate in PointOnPlaneSolve (dispatching on SmConstantRadiusAssistedFS), the fillet surface generators' CreateSurface (blend.fillet_solver_p1's dispatcher now takes the solver type, centre line and rail surfaces), blend.fillet_custom_solver's inherited overrides; FilletSolverType / FilletSurfaceGeneratorType of blend.fillet_standard_solver_p1 re-export blend.fillet_solver_p1's. Compared with real values: LoadInitialValues on SmSurfaceSurfaceFS and SmConstantRadiusAssistedFS (planes, open, closed and pole B-spline patches, rolling-ball corners), GuessPointOnPlaneSolve with SmGuessSphereSolveENFO::Evaluate and PointOnPlaneSolve with SmFilletSphereSolveENFO::Evaluate on SmConstantRadiusAssistedFS (box edge-use shim with replaced offsets), the SmSurfaceSurfaceFS constructor and CalcFilletGeom's parallel-normal exit, SmConstantDistanceFS's edge-use constructor on topology.edgeuse_p1 B-reps, IsKindOf of the assisted, surface/surface and variable-radius solvers. Partial functions: SmVariableRadiusFS::ReCalcFilletGeom stops at SmFilletGeom::GetRail (UNPORTED(blend.fillet_geom_p1)) and SmSurfaceSurfaceFS::CalcFilletGeom at StepSolve (UNPORTED(blend.fillet_solver_p3)) / GetPseudoBrep (UNPORTED(blend.fillet_executive_p1)), their pseudo-B-rep tails unported; the variable-radius constructors, LoadJacobian and LoadInitialValues are ported in full but reach the unported SmFilletLaw (SetEdgeArcLength / Evaluate, UNPORTED(blend.fillet_executive_p1)) and are not compared. Wires UNPORTED(blend.fillet_standard_solver_p2) GuessPointOnPlaneSolve of blend.fillet_custom_solver. Plan notes: 17 fns; largest: SmConstantRadiusFS::LoadInitialValues, SmVariableRadiusFS::LoadJacobian, SmVariableRadiusFS::ReCalcFilletGeom, SmSurfaceSurfaceFS::CalcFilletGeom; cycle back-edges (call into later units; stub or co-port): blend.fillet_geom_p5(1); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit Fillet law wired: SetEdgeArcLength sets the law field; ReCalcFilletGeom runs DoLawIntersection on the SmFilletIntersector (EvaluateLawPoint / ComputePointValuesDelta / TestSpanAccuracy / FlushCurve overrides through IntersectorVirtuals) with SmVariableRadiusFS as the solver (impl FilletSolverOps for VariableRadiusFs; trace surfaces kept at the solver offsets' distances and base extensions); the no-geometry recalc cases (formerly rejected as an out-of-bounds read) now keep the constructor's default fillet geometry on both sides and compare: 405 cases, 405 pass, 0 failed, 0 deferred, 0 rejected, max_rel_err 0 (before: 392 pass, 8 deferred at SmFilletLaw::Evaluate, 5 rejected). 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
- 525
- 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_executive_p1 green blend.fillet_geom_p1 green blend.fillet_solver_p1 green blend.fillet_solver_p3 green blend.fillet_standard_solver_p1 green curve.curve_p2 green geom.extent1d green geom.extent2d green geom.local_solve_nd green geom.matrix green geom.object green geom.solution_array green geom.vector2d green geom.vector3d green intersect.surface_intersector_p1 green nurbs.b_spline_curve_p1 green surface.offset_surface green surface.surface_p2 partial topology.edge green topology.edgeuse_p1 green
Soft dependencies: blend.fillet_intersector green curve.curve_p1 green curve.curve_p4 green curve.curve_p5 partial curve.curve_p6 green geom.geom_utility_p1 green geom.tol green intersect.curve_class_p4 green intersect.surface_intersector_p4 green nurbs.b_spline_surface_p1 green query.face_p2 green surface.surface_p1 green surface.surface_p4 green surface.surface_p5 green surface.surface_p7 green topology.edgeuse_p3 green topology.face_p2 partial topology.loopuse green topology.vertex green topology.vertexuse green
Dependents: blend.fillet_executive_p2 green
Soft dependents: blend.fillet_corner_p2 partial
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmConstantRadiusFS::LoadInitialValues | SmFilletStandardSolver.cpp:418 | 352 | [constant_radius_load_initial_values], [ConstantRadiusAssistedFs::load_initial_values], [SurfaceSurfaceFs::load_initial_values] |
SmGuessSphereSolveENFO::Evaluate | SmFilletStandardSolver.cpp:838 | 124 | [GuessSphereEnfo], [GuessSphereEnfo::evaluate] |
SmConstantRadiusAssistedFS::GuessPointOnPlaneSolve | SmFilletStandardSolver.cpp:968 | 93 | [ConstantRadiusAssistedFs::guess_point_on_plane_solve] |
SmConstantRadiusAssistedFS::PointOnPlaneSolve | SmFilletStandardSolver.cpp:1084 | 138 | [point_on_plane_solve] |
SmConstantRadiusAssistedFS::IsKindOf | SmFilletStandardSolver.cpp:1228 | 4 | [constant_radius_assisted_is_kind_of] |
SmConstantDistanceFS::SmConstantDistanceFS | SmFilletStandardSolver.cpp:1245 | 87 | [ConstantDistanceFs::from_edgeuse] |
SmVariableRadiusFS::SmVariableRadiusFS | SmFilletStandardSolver.cpp:1888 | 101 | [VariableRadiusFs::from_edgeuse] |
SmVariableRadiusFS::SmVariableRadiusFS | SmFilletStandardSolver.cpp:1995 | 58 | [VariableRadiusFs::from_edgeuse] |
SmVariableRadiusFS::ReCalcFilletGeom | SmFilletStandardSolver.cpp:2093 | 229 | [VariableRadiusFs::re_calc_fillet_geom] |
SmVariableRadiusFS::LoadJacobian | SmFilletStandardSolver.cpp:2483 | 305 | [VariableRadiusFs::load_jacobian] |
SmVariableRadiusFS::LoadInitialValues | SmFilletStandardSolver.cpp:2808 | 188 | [VariableRadiusFs::load_initial_values] |
SmVariableRadiusFS::IsKindOf | SmFilletStandardSolver.cpp:3001 | 4 | [VariableRadiusFs::is_kind_of] |
SmCircularCrossSectionFSG::CreateSurface | SmFilletStandardSolver.cpp:3174 | 25 | [CircularCrossSectionFsg::create_surface] |
SmBlendCurveCrossSectionFSG::CreateSurface | SmFilletStandardSolver.cpp:3997 | 25 | [CircularCrossSectionFsg::create_surface] |
SmSurfaceSurfaceFS::SmSurfaceSurfaceFS | SmFilletStandardSolver.cpp:4498 | 31 | [SurfaceSurfaceFs::new] |
SmSurfaceSurfaceFS::CalcFilletGeom | SmFilletStandardSolver.cpp:4592 | 221 | [SurfaceSurfaceFs::calc_fillet_geom], [SurfaceSurfaceFs::calc_fillet_start], [SurfaceSurfaceStart] |
SmSurfaceSurfaceFS::IsKindOf | SmFilletStandardSolver.cpp:4891 | 4 | [SurfaceSurfaceFs::is_kind_of] |
Module file-header table (19 rows)
| Rust | Upstream |
|---|---|
[constant_radius_load_initial_values], [ConstantRadiusAssistedFs::load_initial_values], [SurfaceSurfaceFs::load_initial_values] | SmConstantRadiusFS::LoadInitialValues |
[ConstantRadiusOps] | the SetupOffsetExtension virtual of the SmConstantRadiusFS classes |
[GuessSphereEnfo], [GuessSphereEnfo::evaluate] | SmGuessSphereSolveENFO (as GuessPointOnPlaneSolve evaluates it), SmGuessSphereSolveENFO::Evaluate |
[ConstantRadiusAssistedFs::guess_point_on_plane_solve] | SmConstantRadiusAssistedFS::GuessPointOnPlaneSolve |
[point_on_plane_solve] | SmConstantRadiusAssistedFS::PointOnPlaneSolve |
[constant_radius_assisted_is_kind_of] | SmConstantRadiusAssistedFS::IsKindOf |
[ConstantDistanceFs::from_edgeuse] | SmConstantDistanceFS::SmConstantDistanceFS |
[VariableRadiusFs::from_edgeuse] | SmVariableRadiusFS::SmVariableRadiusFS (edge use) |
[VariableRadiusFs::from_surfaces] | SmVariableRadiusFS::SmVariableRadiusFS (surfaces) |
[VariableRadiusFs::re_calc_fillet_geom] | SmVariableRadiusFS::ReCalcFilletGeom |
[VariableRadiusFs::load_jacobian] | SmVariableRadiusFS::LoadJacobian |
[VariableRadiusFs::load_initial_values] | SmVariableRadiusFS::LoadInitialValues |
[VariableRadiusFs::is_kind_of] | SmVariableRadiusFS::IsKindOf |
impl FilletSolverOps for VariableRadiusFs | the SmVariableRadiusFS virtuals (GetJacobianSize, SetupOffsetValues, OffsetRadiiCanChange, LoadJacobian, LoadInitialValues, GetType, IsKindOf, GetSolverType) |
impl FilletSolverOps for ConstantDistanceFs | the SmConstantDistanceFS virtuals (CanMakeAnalytic, GetJacobianSize, GetSolverType, LoadJacobian, LoadInitialValues, SetupOffsetValues, GetType, IsKindOf) and GetDistance |
[CircularCrossSectionFsg::create_surface] | SmCircularCrossSectionFSG::CreateSurface |
[SurfaceSurfaceFs::new] | SmSurfaceSurfaceFS::SmSurfaceSurfaceFS |
[SurfaceSurfaceFs::calc_fillet_geom], [SurfaceSurfaceFs::calc_fillet_start], [SurfaceSurfaceStart] | SmSurfaceSurfaceFS::CalcFilletGeom (up to GetPseudoBrep; the rest is surface_surface's) |
[SurfaceSurfaceFs::is_kind_of] | SmSurfaceSurfaceFS::IsKindOf |
Upstream tests reaching this unit
prog_test:my_test_extent3d, prog_test:my_test_vector2d, 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