blend.fillet_geom_p5 green
- Layer
- 63
- Upstream lines
- 1,952
- Functions
- 13
- Rust module
blend::fillet_geom::p5
Status history
- todo 1,952 lines
- partial 1,952 lines
- green 1,952 lines
Source: crates/solidcore/src/blend/fillet_geom/p5.rs
Upstream: source/SMLib/src/SmFilletGeom.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
Corner accessors wired (PR #747, 2026-10-24): CalcFilletIntFillet, CalcCrossSection, CalcFilletIntSideFace, CalcEdgeOnExtendedEdge and MakeRailEdgeuse read the corner through CornerLookup; RecordFilletError stays UNPORTED(blend.fillet_corner_p2) (needs the executive). difftest: 300 cases, 300 pass, 0 deferred, 0 failed. Runner model faces built as the shim builds them (blend.fillet_geom_p1's natural_face, fix/classify-face-point-268, 2026-10-22): PARTIAL, 300 cases, 274 pass, 26 deferred (intersect.surface_drop_lib_p3 25, topology.face_p2 1: split_face cases whose sm_ClassifyFacePoint reaches SmSurface::DropCurve or the face handle; they compared a bare loopless face before), 0 failed, max_rel_err 0. PointBasedSurfaceIntersect wired to DoPointIntersection (area 6b, 2026-10-22): GREEN, 300 cases, 300 pass, 0 deferred (was intersect.surface_intersector_p4 1), 0 failed, max_rel_err 0. PARTIAL (PR #264, unstacked: #252 blend.fillet_geom_p4 is merged): all 13 fns ported (SmFilletGeom(SmFilletSolver*, type) was CO-PORTED in blend.fillet_geom_p1 as FilletGeom::new; the other 12 in blend::fillet_geom::p5 with UNPORTED stubs at each unported call: blend.fillet_corner_p1 (corner type/flags/filleted vertex/extended surfaces/tolerance), blend.fillet_corner_p2 (RecordFilletError), blend.fillet_geom_p6 (FindEdgeTangentAtPoint, Copy), blend.fillet_executive_p1 (GetPseudoBrep), blend.fillet_geom_p1 sm_ExamineNFixFilletGeoms (justified: findings.md 'blend.fillet_geom_p5: examine solvers'); the original qualification predated the topology.brep_p3 infinite-region constructor). blend.fillet_geom_p2 wired (sm_SrfSrfIntersection through p4's adapter, SmFilletEdge::UpdateSplitFace with its status ignored). The UNPORTED(blend.fillet_geom_p5) stubs in blend.fillet_solver_p1 / blend.fillet_corner_p3 stay (justified: findings.md 'blend.fillet_geom_p5: solver and corner callers'; follow-up for blend.fillet_solver_p1 / blend.fillet_corner_p3: address geometries in a FilletBrep). difftest 300 generated cases: 245 pass, 0 fail, 55 deferred (blend.fillet_geom_p6 37: 26 SplitFace cases at SmFilletEdge::ShouldSwapFaces, 11 SM_BT_BLEND end curves at FindEdgeTangentAtPoint; intersect.surface_intersector_p2 7 and _p4 1: the cliff-rail and side-face surface intersections of TrimRails; topology.brep_p3 10: SmBrep::SmBrep of 5 MakeFilletEdge and 5 MakeRailEdge), max_rel_err 0; --perturb SENSITIVE 245/245. Per op: IntFillet 3, CrossSection 54, SideFace 7, ExtEdge 4, TrimRails 140, SplitFace 32 (6 pass), MakeEdge 5, RailEdge 5, EndCurve 49 (11 BLEND, all deferred), RailEdgeuse 1. Paths (breakpoint count per case): 32 cases reach UpdateSplitFace, 26 of them ShouldSwapFaces (all deferred; the 6 that do not reach it compare original and split faces); 44 reach TrimCliffRails (36 pass, 8 defer at the intersection) and 7 of those CalcCliffRailIntEdge; 11 reach FindEdgeTangentAtPoint (SM_BT_BLEND, all deferred). Of the 245 passes 202 compare 3+ values (trim_rails, cross_section, split_face), 39 compare the status and one value and 4 only the status (CalcFilletIntFillet/CalcEdgeOnExtendedEdge stop at the first NER of their corner and the builders at their early exits, so the bodies of calc_fillet_int_fillet and calc_edge_on_extended_edge are compared by no case until blend.fillet_corner_p1 lands). Review rounds: the rail solves name the rail curve in their solutions (CurveObjectHandle), p4's sm_CreateUVCurve its surface (UvSurfaceHandle), p1's sm_TwoPntsIntersection / p2's CalcSetBackVert their surfaces (SurfaceHandle) and p4's CalcFilletInt2Fillets its curves, so SmGlobalSolver::IdenticalSolutions merges near-duplicates as upstream (findings.md 'rail trims and cross sections disagree in the tolerance-dominated regime (resolved)'); upstream-issues UB-213 (CalcCrossSection lifts *pUVCurve1) and UB-214 (CalcFilletIntSideFace pCorner) and UB-238 (MakeRailEdgeuse leaves a deleted vertex use linked; the RailEdgeuse op refuses that path). Shim: harness/cpp/shim/blend_fillet_geom_p5_static.inc, included by the p1 shim after p4's; p1's model gained pc_kind 4 (an SmEdge for SM_PC_EDGE). Plan notes: 13 fns; largest: SmFilletGeom::TrimCliffRails, SmFilletGeom::TrimRailCurves, SmFilletEdge::CalcCrossSection, SmFilletVertex::CalcFilletIntFillet; cycle back-edges (call into later units; stub or co-port): blend.fillet_corner_p2(1); unit-SCC #22 (220 units); 31 upstream test entry points reach this unit PR #208 integration: trim_rail_curves_with_solver accepts the actual live solver id; indexed-table and single-live-solver calls share the original normal/cliff bodies. The rollover caller is wired here, and its typed p1 rail helper uses make_fillet_edge; after #456 the real constructor supplies the infinite region; a deliberately missing region is SM_ERR_NULL_POINTER. UPDATE (PR #247, blend.fillet_geom_p6): FindEdgeTangentAtPoint (CreateEndCurve now takes the target B-rep) and SmFilletGeom::Copy wired to part 6. Re-run: 300 cases, 274 pass, 0 failed, 26 deferred (intersect.surface_intersector_p2 7, _p4 1, topology.brep_p3 18; none on blend.fillet_geom_p6) UPDATE (PR #208 after #236): full rollover in solver p3 delegates cliff trimming through trim_rail_curves_with_solver; the CliffRollover branch shares the same cliff body as indexed-table callers, preserving actual solver identity. Qualification after main #456 (PR #208): PARTIAL blend.fillet_geom_p5 cases=300 passed=292 failed=0 deferred=8 max_rel_err=0e0 with_values=292 no_values=0 blocked_by=intersect.surface_intersector_p2(7),intersect.surface_intersector_p4(1). The real constructor and native vertex creation-order export remove all 18 former topology.brep_p3 deferrals; remaining deferrals are surface intersections. Qualification after main #491 (PR #208): PARTIAL blend.fillet_geom_p5 cases=300 passed=292 failed=0 deferred=8 max_rel_err=0e0 with_values=292 no_values=0 blocked_by=intersect.surface_intersector_p2(7),intersect.surface_intersector_p4(1). The real constructor and native vertex creation-order export remove all 18 former topology.brep_p3 deferrals; remaining deferrals are surface intersections. Qualification after main #491 (PR #208): PARTIAL blend.fillet_geom_p5 cases=300 passed=292 failed=0 deferred=8 max_rel_err=0e0 with_values=292 no_values=0 blocked_by=intersect.surface_intersector_p2(7),intersect.surface_intersector_p4(1). The real constructor and native vertex creation-order export remove all 18 former topology.brep_p3 deferrals; remaining deferrals are surface intersections. Wired SmAdvSurfaceIntersector::FindInteriorCurves' ComputePointValues and TraceCurve (base bodies; ComputeSingularityPoint dispatches via the advanced flag): 300 cases, 292 pass, 8 deferred -> 300 cases, 299 pass, 0 failed, 1 deferred (intersect.surface_intersector_p4 1: DoPointIntersection stub in surface/surface/p2.rs). GREEN (promoted by intersect.surface_drop_lib_p3, PR #463): CI difftest 300 cases, 300 pass, 0 deferred, 0 failed (the 25 cases deferred on SmSurface::DropCurve now compare).
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
- 300
- 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_p2 green blend.fillet_geom_p4 partial blend.fillet_geom_p6 green blend.fillet_solver_p1 green curve.curve_p2 green geom.extent1d green geom.extent2d green geom.object green geom.solution_array green geom.vector2d green geom.vector3d green nurbs.b_spline_curve_p1 green surface.surface_p2 partial topology.edge green topology.edgeuse_p1 green topology.proto_topology_p1 green topology.topology green topology.vertex green
Soft dependencies: blend.fillet_executive_p1 green curve.curve_p1 green curve.curve_p4 green curve.curve_p6 green curve.curve_p9 green curve.hermite_curve green geom.tol green nurbs.b_spline_curve_n_lib green nurbs.b_spline_curve_p2 green surface.offset_surface green surface.plane_p1 partial surface.surface_p11 green surface.surface_p7 green topology.face_p2 partial topology.vertexuse green
Dependents: none
Soft dependents: blend.fillet_corner_p2 partial
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmFilletVertex::CalcFilletIntFillet | SmFilletGeom.cpp:2487 | 175 | [FilletBrep::calc_fillet_int_fillet] |
SmFilletEdge::CalcCrossSection | SmFilletGeom.cpp:5619 | 307 | [FilletBrep::calc_cross_section] |
SmFilletEdge::CalcFilletIntSideFace | SmFilletGeom.cpp:6168 | 167 | [FilletBrep::calc_fillet_int_side_face] |
SmFilletEdge::CalcEdgeOnExtendedEdge | SmFilletGeom.cpp:7634 | 103 | [FilletBrep::calc_edge_on_extended_edge] |
SmFilletEdge::MakeFilletEdge | SmFilletGeom.cpp:8382 | 69 | [FilletBrep::make_fillet_edge] |
SmFilletGeom::SmFilletGeom | SmFilletGeom.cpp:8971 | 31 | [FilletGeom::new] (in blend.fillet_geom_p1) |
SmFilletGeom::SmFilletGeom | SmFilletGeom.cpp:9010 | 22 | [FilletGeom::new] (in blend.fillet_geom_p1) |
SmFilletGeom::MakeRailEdge | SmFilletGeom.cpp:9937 | 54 | [FilletBrep::make_rail_edge] |
SmFilletGeom::MakeRailEdgeuse | SmFilletGeom.cpp:10027 | 112 | [FilletBrep::make_rail_edgeuse] |
SmFilletGeom::CreateEndCurve | SmFilletGeom.cpp:10162 | 162 | [FilletBrep::create_end_curve], [FilletBrep::create_end_curve_with_solver] |
SmFilletGeom::TrimRailCurves | SmFilletGeom.cpp:10427 | 331 | [FilletBrep::trim_rail_curves], [FilletBrep::trim_rail_curves_with_solver] |
SmFilletGeom::TrimCliffRails | SmFilletGeom.cpp:10764 | 385 | [FilletBrep::trim_cliff_rails] |
SmFilletGeom::UpdateSplitFace | SmFilletGeom.cpp:11849 | 34 | [FilletBrep::update_geom_split_face] |
Module file-header table (15 rows)
| Rust | Upstream |
|---|---|
[FilletBrep::calc_fillet_int_fillet] | SmFilletVertex::CalcFilletIntFillet |
[FilletBrep::calc_cross_section] | SmFilletEdge::CalcCrossSection |
[FilletBrep::calc_fillet_int_side_face] | SmFilletEdge::CalcFilletIntSideFace |
[FilletBrep::calc_edge_on_extended_edge] | SmFilletEdge::CalcEdgeOnExtendedEdge |
calc_edge_on_tangent_seam (private) | SmFilletEdge::CalcEdgeOnTangentSeam (fork 856b54e) |
definition_section_in_plane (private) | none (#2406: an End's rib on a round by its definition, its section in the End's plane) |
[FilletBrep::make_fillet_edge] | SmFilletEdge::MakeFilletEdge |
[FilletGeom::new] (in blend.fillet_geom_p1) | SmFilletGeom(SmFilletSolver*, SmFilletGeomType) (CO-PORTED there) |
[FilletBrep::copy_fillet_geom] | SmFilletGeom(SmFilletGeom*) |
[FilletBrep::make_rail_edge] | SmFilletGeom::MakeRailEdge |
[FilletBrep::make_rail_edgeuse] | SmFilletGeom::MakeRailEdgeuse |
[FilletBrep::create_end_curve], [FilletBrep::create_end_curve_with_solver] | SmFilletGeom::CreateEndCurve |
[FilletBrep::trim_rail_curves], [FilletBrep::trim_rail_curves_with_solver] | SmFilletGeom::TrimRailCurves |
[FilletBrep::trim_cliff_rails] | SmFilletGeom::TrimCliffRails |
[FilletBrep::update_geom_split_face] | SmFilletGeom::UpdateSplitFace |
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