blend.fillet_custom_solver green
- Layer
- 41
- Upstream lines
- 1,236
- Functions
- 8
- Rust module
blend::fillet_custom_solver
Status history
- todo 1,236 lines
- partial 1,236 lines
- green 1,236 lines
Source: crates/solidcore/src/blend/fillet_custom_solver.rs
Upstream: source/SMLib/inc/SmFilletCustomSolver.h, source/SMLib/src/SmFilletCustomSolver.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
GREEN (PR #439, 2026-10-21: 451 cases, 451 pass, 0 deferred, --perturb 451/451, on #303). GREEN (PR #265, 2026-10-20): difftest 448 cases (48 fixture, 400 generated), 448 pass (all compare 3+ values), 0 failed, 0 deferred, max_rel_err 0, --perturb SENSITIVE 448/448. GuessPointOnPlaneSolve runs (blend.fillet_standard_solver_p2); the inherited SmConstantRadiusFS / SmConstantRadiusAssistedFS overrides of both solvers (GetJacobianSize, SetupOffsetValues, OffsetRadiiCanChange, GetType, IsKindOf) call blend.fillet_standard_solver_p1 / _p2; the runner's error record reports rpSurface2 as upstream sets it before failing; a base extension the other rail's local point solve makes is handed back to the solver's offset (surface.offset_surface keeps &self extensions, as upstream's const cast). Before: PARTIAL 401 pass, 0 failed, 47 deferred (blend.fillet_standard_solver_p2 47: GuessPointOnPlaneSolve); earlier: --perturb SENSITIVE (360/360); 4000-seed run 4048 cases, 3242 pass, 0 failed, 806 deferred. CreateSurface (SmEiffelTowerCrossSectionFSG) is compared on 'Eiffel tower' sections over straight (ruled branch), concentric arc (surface of revolution branch) and free-form rails (skin with extrusion cross-boundary derivative surfaces), equal radii, vanishing/zero second arc, touching rails (point sections), mismatched point counts and knot vectors, different intervals on parallel 2-point line rails (the only different-interval inputs the FFI guard admits), tolerances 0 to above the rail gap, scales 1e-6 to 1e6; the shim's solver is an SmConstantRadiusFS (CreateSurface reads only its context and tolerance). LoadJacobian / LoadInitialValues of SmEiffelTowerFS and SmSecantConstantRadiusFS run in C++ on solvers built on an SmApiCreateBox edge use with their offset surfaces, orientations and radii replaced and edge uses cleared; the offset surfaces are the ported SmOffsetSurface (surface.offset_surface, wired in PR #62) built with the case's lSingularities: SM_SS_UNKNOWN (upstream's default) now runs SmSurface::GetSingularities; LoadInitialValues with rbDoSurf2Calcs runs GlobalPointSolve, and LocalPointSolve on the other rail's offset (a copy: the solver is borrowed shared), which reaches LocalPointSolve_1 (surface.surface_point_solve_p3, landed). Other stubs: GuessPointOnPlaneSolve (wired by blend.fillet_standard_solver_p2, PR #265), the SmConstantRadiusFS edge-use constructor (ConstantRadiusAssistedFs::from_edgeuse) wired by blend.fillet_standard_solver_p1 (PR #168). Co-ports (see CO-PORTED notes of blend.fillet_solver_p1, blend.fillet_standard_solver_p1); the offset surface co-port is replaced by surface.offset_surface (PR #62). Plan notes: 8 fns; largest: SmEiffelTowerFS::LoadInitialValues, SmSecantConstantRadiusFS::LoadInitialValues, SmEiffelTowerCrossSectionFSG::CreateSurface, SmEiffelTowerFS::LoadJacobian; cycle back-edges (call into later units; stub or co-port): blend.fillet_solver_p1(8), blend.fillet_standard_solver_p2(2); unit-SCC #22 (220 units); only 3 of 1236 lines survive RTA (reached via virtual dispatch to classes no in-scope entry point constructs); low priority / likely deferrable; 317 upstream test entry points reach this unit FIX (batch/finish-3): ConstantRadiusAssistedFs's GetSolverType returns SM_FS_CONST_RADIUS_ASSISTED as upstream (SmFilletStandardSolver.h:112), not SM_FS_CONST_RADIUS; the intersector shim builds a real SmConstantRadiusAssistedFS and its ComputeNextPoint cases now reach StepSolve. 451/451 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
- 451
- 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.axis2_placement green geom.extent1d green geom.extent2d 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.surface_p7 green topology.edgeuse_p1 green
Soft dependencies: curve.curve_p1 green curve.curve_p2 green curve.curve_p4 green curve.curve_p5 partial curve.curve_p6 green geom.geom_utility_p2 green geom.matrix green geom.tol green nurbs.b_spline_curve_n_lib green nurbs.b_spline_curve_p2 green nurbs.b_spline_curve_p3 green nurbs.b_spline_surface_n_lib_p1 green nurbs.b_spline_surface_n_lib_p2 green nurbs.b_spline_surface_p1 green nurbs.b_spline_surface_p2 green surface.offset_surface green surface.surf_of_extrusion_p1 green surface.surface_p1 green surface.surface_p2 partial surface.surface_p4 green surface.surface_p5 green topology.edge green topology.face_p2 partial
Dependents: none
Soft dependents: blend.fillet_solver_p1 green blend.fillet_standard_solver_p1 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmEiffelTowerFS::~SmEiffelTowerFS | SmFilletCustomSolver.h:33 | 1 | |
SmEiffelTowerCrossSectionFSG::~SmEiffelTowerCrossSectionFSG | SmFilletCustomSolver.h:83 | 1 | |
SmSecantConstantRadiusFS::~SmSecantConstantRadiusFS | SmFilletCustomSolver.h:111 | 1 | |
SmEiffelTowerFS::LoadInitialValues | SmFilletCustomSolver.cpp:62 | 281 | [EiffelTowerFs::load_initial_values] |
SmEiffelTowerFS::LoadJacobian | SmFilletCustomSolver.cpp:380 | 223 | [EiffelTowerFs::load_jacobian] |
SmEiffelTowerCrossSectionFSG::CreateSurface | SmFilletCustomSolver.cpp:611 | 265 | [EiffelTowerCrossSectionFsg::create_surface] |
SmSecantConstantRadiusFS::LoadInitialValues | SmFilletCustomSolver.cpp:903 | 266 | [SecantConstantRadiusFs::load_initial_values] |
SmSecantConstantRadiusFS::LoadJacobian | SmFilletCustomSolver.cpp:1199 | 198 | [SecantConstantRadiusFs::load_jacobian] |
Module file-header table (13 rows)
| Rust | Upstream |
|---|---|
[EiffelTowerFs], [EiffelTowerFs::new] | SmEiffelTowerFS (members, constructor; Drop is the destructor) |
[EiffelTowerFs::load_initial_values] | SmEiffelTowerFS::LoadInitialValues |
[EiffelTowerFs::load_jacobian] | SmEiffelTowerFS::LoadJacobian |
[EiffelTowerCrossSectionFsg] | SmEiffelTowerCrossSectionFSG (constructor; Drop is the destructor) |
[EiffelTowerCrossSectionFsg::create_surface] | SmEiffelTowerCrossSectionFSG::CreateSurface |
[SecantConstantRadiusFs], [SecantConstantRadiusFs::new] | SmSecantConstantRadiusFS (members, constructor; Drop is the destructor) |
[SecantConstantRadiusFs::load_initial_values] | SmSecantConstantRadiusFS::LoadInitialValues |
[SecantConstantRadiusFs::load_jacobian] | SmSecantConstantRadiusFS::LoadJacobian |
[ConstantRadiusAssistedFs] (CO-PORTED) | SmConstantRadiusFS / SmConstantRadiusAssistedFS over the SmFilletSolver base ([FilletSolver]) |
impl FilletSolverOps for ConstantRadiusAssistedFs | the same inherited overrides plus SmConstantRadiusFS::LoadJacobian (blend.fillet_standard_solver_p1's methods), SmConstantRadiusAssistedFS::IsKindOf, SmConstantRadiusFS::LoadInitialValues and SmConstantRadiusAssistedFS::PointOnPlaneSolve (_p2's) (the class blend.fillet_intersector runs ComputeSurfaceValues on) |
impl FilletSolverOps for both solvers | their LoadJacobian / LoadInitialValues overrides; the inherited SmConstantRadiusFS / SmConstantRadiusAssistedFS overrides GetJacobianSize, SetupOffsetValues, OffsetRadiiCanChange, GetType call blend.fillet_standard_solver_p1's, IsKindOf and PointOnPlaneSolve _p2's |
[OffsetSurface], [SurfaceId] | an SmOffsetSurface* rail surface (unit surface.offset_surface) and the identity of its base pointer |
[JacobianLoad], [InitialValues] | the in/out arguments of LoadJacobian, LoadInitialValues |
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