blend.fillet_executive_p2 green
- Layer
- 61
- Upstream lines
- 1,155
- Functions
- 12
- Rust module
blend::fillet_executive::p2
Status history
- todo 1,152 lines
- partial 1,152 lines
- green 1,152 lines
Source: crates/solidcore/src/blend/fillet_executive/p2.rs
Upstream: source/SMLib/inc/SmFilletExecutive.h, source/SMLib/src/SmFilletExecutive.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
PARTIAL (PR #267): 12/12 fns; difftest 275 cases (259 fixture in fixtures/blend.fillet_executive_p2/constructed.json + 16 generated): 250 pass at max_rel_err 0 (224 fixture + 16 generated law constructors compared on every value, 4 empty-edge SetFilletParameters, 2 null-dereference guards and 1 box with fewer than 12 edges (box_edge_count) erroring on both sides, 3 empty-executive SetFilletBrepEdgeMap/ProcessSmoothEdgeSequences/CollectTangentEdgeSequence), 0 failed, 25 deferred (blend.fillet_executive_p1 22: NoteError/AddFilletSurfaceGenerator/LoadFilletSolver; blend.fillet_standard_solver_p2 2: SmConstantDistanceFS/SmVariableRadiusFS constructors; topology.face_p2 1: SmFace::GetTolerance in the constant-radius solver constructor); SmTemporaryRadiusChange and every non-empty executive member defer at executive p1 until it lands; upstream UB-206, WR-208, UB-209; the UNPORTED(blend.fillet_executive_p2) SmTemporaryRadiusChange::SetUp stub in blend::fillet_geom::p2 stays (see plan/findings.md, blend.fillet_executive_p2 'Not wired'): its base FilletSolver cannot reach a variable-radius law without #260's FilletSolverKind, the RAII scope must wrap RailEdgeuseIntersect with &mut solvers, it needs a concrete-id entry point, and law evaluation is still executive p1's; builds on H1D 38c5677c (FilletLaw edge map, arc length, extended law; declared dependency); 12 fns; largest: SmFilletExecutive::SurfaceSurfaceFillet, SmFilletExecutive::DoSurfaceFilleting, SmFilletExecutive::SetFilletParameters, SmFilletExecutive::CollectTangentEdgeSequence; cycle back-edges (call into later units; stub or co-port): blend.fillet_geom_p6(1); unit-SCC #22 (220 units); 31 upstream test entry points reach this unit UPDATE (PR #204, topology.brep_p3): its difftest Access implements the now-required ExecutiveAccess::merge_brep / orient_trimmed_surfaces with topology::brep::p3 (see blend.fillet_executive_p3). Report unchanged (274 cases, 249 pass, 0 fail, 25 deferred). ; UPDATE (PR #260): NoteError, NoteFilletError, AddFilletSurfaceGenerator, GetFilletSolverOfEdge and the executive constructor wired, and the runner's SmFilletSolverType table fixed (codes 1, 2 and 4 were permuted): 275 cases (after merging main), 259 pass, 0 failed, 16 deferred (topology.face_p2 12, blend.fillet_standard_solver_p2 4), none at blend.fillet_executive_p1 UPDATE (LoadFilletSolver): SetFilletParameters and SurfaceSurfaceFillet call the actual p1 loader, with a single explicit executive context and concrete solver adapters. 275 native cases:267 pass,8 deferred,0 failed; all259 baseline passing IDs retained. Four cases now reach later executive p1 methods; four require standard-solver p2 constructors. The constant-radius temporary-radius fixture now supplies actual adjacent side edgeuses and compares normally. GREEN (PR #1040): co-ported SmFilletExecutive::CreateSmoothEdgeSequence in blend::fillet_executive::p1, wired ProcessSmoothEdgeSequences and CollectTangentEdgeSequence through SmoothSequenceAccess and SessionObjects, wired DirectTemporaryRadiusChange across blend::fillet_geom::p2::calc_rail_int_edgeuse_impl and blend::fillet_solver::p2::FilletSolver::rail_rail_intersect_with_ops (0 UNPORTED(blend.fillet_executive_p2) remaining repo-wide), wired ConstantDistanceFs/VariableRadiusFs/SurfaceSurfaceFs and FilletCorner in the difftest runner, and added 3 split-edge G1 smooth-sequence cases; difftest 278/278 pass (max_rel_err 0e0, with_values 274, no_values 4), 0 failed, 0 deferred. UPDATE (PR #1298): the runner's ExecutiveAccess::adjust_topology / adjust_tangent_corner no longer return UNPORTED(blend.fillet_corner_p1) (a ported unit); they dispatch the fixture's real corners through blend::fillet_corner::p3 FilletCorner::adjust_topology_with / adjust_tangent_corner_with (base kinds SM_SUCCESS; the Nx2 / Convex-Concave NxN / closed Nx1 overrides need a CornerEnv the fixture does not build and give its no-such-object error, as CheckAndFixDegeneracy). No case reaches either call (create_fillet_brep stops earlier at calc_corner_vertices); report unchanged.
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
- 278
- Stored error outcomes
- 2
- 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_standard_solver_p1 green blend.fillet_standard_solver_p2 green boolean.merge_p1 green geom.context green geom.extent1d green geom.object green geom.vector3d green nurbs.b_spline_curve_p1 green topology.brep_p1 green topology.edge green
Soft dependencies: blend.fillet_corner_p1 green blend.fillet_geom_p4 partial blend.fillet_solver_p2 green blend.fillet_solver_p3 green blend.fillet_solver_p4 green boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green curve.curve_p2 green curve.curve_p8 green geom.a_object green geom.solution_array green geom.tol green geom.vector2d green nurbs.b_spline_curve_n_lib green surface.offset_surface green surface.surface_p2 partial topology.brep_p2 green topology.brep_p3 partial topology.brep_p4 green topology.edgeuse_p1 green topology.proto_topology_p1 green topology.topology green
Dependents: none
Soft dependents: blend.fillet_corner_p2 partial blend.fillet_geom_p2 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmTemporaryRadiusChange::SmTemporaryRadiusChange | SmFilletExecutive.h:651 | 10 | [TemporaryRadiusChange::new], [TemporaryRadiusChange::revert], [with_temporary_radius_change] |
SmTemporaryRadiusChange::~SmTemporaryRadiusChange | SmFilletExecutive.h:663 | 4 | |
SmFilletExecutive::SetFilletParameters | SmFilletExecutive.cpp:902 | 197 | [FilletExecutive::set_fillet_parameters], [FilletParameters] |
SmFilletExecutive::SurfaceSurfaceFillet | SmFilletExecutive.cpp:1346 | 256 | [surface_surface_fillet], [SurfaceFilletOptions] |
SmFilletExecutive::DoSurfaceFilleting | SmFilletExecutive.cpp:3790 | 220 | [FilletExecutive::do_surface_filleting] |
SmFilletExecutive::SetFilletBrepEdgeMap | SmFilletExecutive.cpp:4187 | 92 | [FilletExecutive::set_fillet_brep_edge_map] |
SmFilletExecutive::ProcessSmoothEdgeSequences | SmFilletExecutive.cpp:4584 | 20 | [FilletExecutive::process_smooth_edge_sequences], FilletExecutive::process_smooth_edge_sequences_with |
SmFilletExecutive::CollectTangentEdgeSequence | SmFilletExecutive.cpp:4611 | 125 | [FilletExecutive::collect_tangent_edge_sequence] |
SmTemporaryRadiusChange::SetUp | SmFilletExecutive.cpp:5008 | 106 | [TemporaryRadiusChange::set_up] |
SmTemporaryRadiusChange::Revert | SmFilletExecutive.cpp:5123 | 36 | revert_change (private) |
SmLinearFilletLaw::SmLinearFilletLaw | SmFilletExecutive.cpp:5365 | 16 | [FilletLaw::linear] |
SmBSplineFilletLaw::SmBSplineFilletLaw | SmFilletExecutive.cpp:5634 | 73 | [FilletLaw::bspline_elliptical] |
Module file-header table (16 rows)
| Rust | Upstream |
|---|---|
[FilletExecutive::set_fillet_parameters], [FilletParameters] | SmFilletExecutive::SetFilletParameters (edge pointers, per-edge parameters; the fork's pOptSecondRadii, f653ac9) |
reset_parameter_state (crate-private) | SmFilletExecutive::SetFilletParameters reset block |
check_edges_are_in_brep (private) | SmFilletExecutive::CheckEdgesAreInBrep |
[FilletParametersAccess::parameters_split_blended_vertex_fans] | the fork's SmFilletExecutive::SplitBlendedVertexFans (e418750, WR-665) |
[FilletParametersAccess::parameters_runs_on_across_seams], [RunOn] | none (#2864: a picked edge's blend runs on across a seam's vertex) |
[surface_surface_fillet], [SurfaceFilletOptions] | SmFilletExecutive::SurfaceSurfaceFillet |
[FilletExecutive::do_surface_filleting] | SmFilletExecutive::DoSurfaceFilleting |
[FilletExecutive::set_fillet_brep_edge_map] | SmFilletExecutive::SetFilletBrepEdgeMap |
[FilletExecutive::process_smooth_edge_sequences], FilletExecutive::process_smooth_edge_sequences_with | SmFilletExecutive::ProcessSmoothEdgeSequences |
[FilletExecutive::collect_tangent_edge_sequence] | SmFilletExecutive::CollectTangentEdgeSequence |
[TemporaryRadiusChange::new], [TemporaryRadiusChange::revert], [with_temporary_radius_change] | SmTemporaryRadiusChange (constructor, destructor) |
[TemporaryRadiusChange::set_up] | SmTemporaryRadiusChange::SetUp |
revert_change (private) | SmTemporaryRadiusChange::Revert |
[FilletLaw::linear] | SmLinearFilletLaw::SmLinearFilletLaw |
[FilletLaw::bspline_elliptical] | SmBSplineFilletLaw::SmBSplineFilletLaw (elliptical blend) |
[FilletLaw::bspline] | SmBSplineFilletLaw::SmBSplineFilletLaw(SmBSplineCurve*, const SmExtent1d&) |
Upstream tests reaching this unit
SM_API_test:TestSmFilletPreview, SM_API_test:TestSmSurfaceSurfaceFillet, SM_API_test:TestSmCircularFillet, SM_API_test:TestSmChamferFillet, SM_API_test:TestSmFilletEdges, SM_API_test:TestSmFilletEdgesPerEdge