solidcore

Units / blend

blend.fillet_geom_p3 green

Layer
60
Upstream lines
1,032
Functions
6
Rust module
blend::fillet_geom::p3

Status history

Oct 12Nov 25
  1. todo 1,032 lines
  2. partial 1,032 lines
  3. green 1,032 lines

Source: crates/solidcore/src/blend/fillet_geom/p3.rs

Upstream: source/SMLib/src/SmFilletGeom.cpp

Port-plan notes

These notes preserve historical port measurements and limitations, not current CI results.

2026-10-27 (PR #1367, nightly fuzz00137: a vertex corner tag of 2^31 aborted the Rust side allocating 384 GiB two nights running): the runner's Rust side applies the FFI's checks (solidcore_ffi blend_fillet_geom_p3::validate, split out of eval) to the same input vector as the C++ side, so a corner tag at or above MAX_LIST (64), which the FFI refuses for the C++ because the shim's corner table is indexed by tag, is a harness error on both sides and shim_corners never sizes the Rust table by it; regression crates/difftest/tests/fuzz_corpus/blend.fillet_geom_p3.json and the runner test huge_corner_tag_is_refused_on_both_sides; plan/findings/blend.fillet_geom_p3--corner-tag-2-31-sizes-rust-shim-corner-table-fuzz00137.md. Gate unchanged: 325 cases, 318 pass, 7 rejected, 0 failed. RecordFilletError wired (PR #972, 2026-10-25): SmFilletEdge::CalcFilletIntFillet (and CalcFilletIntSideFace in blend.fillet_geom_p5) record SM_FILERR_BAD_INT through FilletCorner::record_fillet_error_in into ErrorInfo<ExecutiveErrorObject> (wired through FilletCorner::calc_corner_edge_geom onto FilletExecutiveData::error and in the blend_fillet_geom_p3 runner); zero UNPORTED(blend.fillet_corner_p2) stubs remain. difftest: 325 cases, 318 pass, 0 deferred, 0 failed, 7 rejected, max_rel_err=0e0, --perturb SENSITIVE 318/318. FilletIntersector point intersection wired (PR #874, 2026-10-25): ReCalcFilletGeom runs SmFilletIntersector::DoPointIntersection through IntersectorSolver; the rail-end points are copied back into the vertex uses before the error is returned (upstream writes them in place). difftest: 325 cases, 316 pass, 2 deferred (blend.fillet_corner_p2 2), 0 failed, 7 rejected. Corner accessors wired (PR #747, 2026-10-24): the dispatchers pass a CornerLookup (calc_corner_edge_geom_of_corner folded into calc_corner_edge_geom with CornerLookup::of_corner); the runner gives the shim corners matching records (empty edge lists), so the 2 GetFilletEdges deferrals compare. TopologySplit's AddFilletVertex / GetCornerType / MakeRailEdgeuse corner now UNPORTED(blend.fillet_executive_p1) (the solvers hold no corner table). difftest: 325 cases, 304 pass, 14 deferred (intersect.surface_intersector_p4 12, blend.fillet_corner_p2 2), 0 failed, 7 rejected. Back-edges wired (2026-10-24): both UNPORTED(blend.fillet_geom_p3) stubs in blend::fillet_corner::p1 (CalcCornerVertGeom, CalcCornerEdgeGeom) now call this unit; FilletBrep::calc_corner_edge_geom_of_corner resolves the edge's corner to the calling corner (upstream asserts it is). Counts unchanged: PointBasedSurfaceIntersect wired to DoPointIntersection (area 6b, 2026-10-22): 325 cases, 302 pass, 16 deferred (intersect.surface_intersector_p4 12 = the SmFilletIntersector-override DISPATCH GAP, blend.fillet_corner_p1 2, blend.fillet_corner_p2 2; was surface_intersector_p4 31), 0 failed, 7 rejected. 6 fns; largest: SmFilletGeom::ReCalcFilletGeom, SmFilletGeom::TopologySplit, SmFilletEdge::CalcFilletIntFillet, SmFilletVertex::CalcMateGeom; cycle back-edges (call into later units; stub or co-port): blend.fillet_geom_p5(9), blend.fillet_geom_p2(7), blend.fillet_geom_p6(4), blend.fillet_geom_p4(2), blend.fillet_solver_p2(2), blend.fillet_corner_p2(1); unit-SCC #22 (220 units); 31 upstream test entry points reach this unit; PR #242 partial: 325 cases (25 fixture in fixtures/blend.fillet_geom_p3/cases.json, 7 of them expected_rejection regressions; 300 generated: mates, on-vertex, fillet x fillet edges (with and without a 3D curve, crossing planes and patches), corner-edge dispatch (incl. CalcRailRailInterpolation), the part-2/4 vertex calculators through CalcCornerVertGeom and as a mate's main vertex, ReCalcFilletGeom with unset (-SM_BIG_DOUBLE) rail-end uvs), 283 passed, 35 deferred (intersect.surface_intersector_p4 31: DoPointIntersection on the SmFilletIntersector in ReCalcFilletGeom, a DISPATCH GAP: the base driver does not reach the fillet intersector's overrides and FilletSolver does not implement fillet_intersector::FilletSolverOps, the intersector's constructor is wired (#179); and the point-based intersection inside sm_SrfSrfIntersection of two B-spline fillet surfaces; blend.fillet_corner_p1 2: GetFilletEdges in CalcRailRailInterpolation with a corner; blend.fillet_corner_p2 2: RecordFilletError after a failed intersection), 7 rejected, 0 failed, max_rel_err=4.6e-15, no absolute floors; 2000-seed sweep 1795 pass / 223 deferred / 0 failed; --perturb SENSITIVE 283/283; --fuzz 2000 FUZZ-PASS. The stubs into blend.fillet_geom_p2 and p4 (#263) are wired: CalcRailIntRail, CalcRailIntEdgeuse, CalcVertOnCrossSection, CalcSetBackVert, CalcRailIntExtendedEdgeuse, CalcFilletInt2Fillets, CalcRailRailInterpolation and sm_SrfSrfIntersection (then SetCurve/SetUVCurve); the shim runs the vertex calculators on vertices without a corner, as #263's shims do. The edge's CalcFilletIntFillet is FilletBrep::calc_edge_fillet_int_fillet (the vertex one is blend.fillet_geom_p5's, #264). TopologySplit is kernel-tested only (upstream needs a real SmFilletExecutive). ReCalcFilletGeom never reaches success until the intersector dispatch gap is closed. The back-edge TopologySplit in blend/fillet_solver/p1.rs (split_fillet_geom_at_side_edge) is wired (PR #247, on #303's FilletGeomIds). Upstream issues UB-211 (CalcVertOnVert NULL/wrong-kind object), UB-185 (unbounded mate recursion; MAX_MATE_DEPTH = 64), UB-208 (ReCalcFilletGeom reads the first of no sorted points without a march direction), UB-210 (CalcFilletIntFillet reads the context of a missing corner); the shim refuses exactly those models. UPDATE (PR #247): the part 5 calculators are wired in CalcCornerVertGeom / CalcCornerEdgeGeom (CalcFilletIntFillet, CalcCrossSection, CalcFilletIntSideFace, CalcEdgeOnExtendedEdge) and in the edge's CalcFilletIntFillet (now taking the target B-rep); ReCalcFilletGeom's CalcCrossSection stays UNPORTED(blend.fillet_geom_p5) (it needs a solver table ReCalcFilletGeom does not get; unreachable today). Shim after #247 (PR #242): the vertex CalcFilletIntFillet (part 5) and a fillet x fillet edge's unprocessed end vertex run on vertices without a corner, as p5's own shim does, instead of being refused as unported.

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
325
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_geom_p1 green blend.fillet_solver_p1 green curve.curve_p2 green geom.extent1d green geom.object green geom.solution_array green geom.vector3d green intersect.surface_intersector_p1 green surface.offset_surface green topology.edge green topology.edgeuse_p1 green topology.proto_topology_p1 green topology.vertex green

Soft dependencies: blend.fillet_corner_p1 green blend.fillet_executive_p1 green blend.fillet_intersector green curve.curve_p1 green curve.curve_p4 green curve.curve_p6 green geom.geom_utility_p1 green geom.tol green geom.vector2d green intersect.surface_intersector_p4 green nurbs.b_spline_curve_n_lib green nurbs.b_spline_curve_p1 green topology.vertexuse green

Dependents: none

Soft dependents: blend.fillet_corner_p2 partial blend.fillet_corner_p3 partial

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmFilletVertex::CalcCornerVertGeomSmFilletGeom.cpp:143423[FilletBrep::calc_corner_vert_geom]
SmFilletVertex::CalcMateGeomSmFilletGeom.cpp:348069[FilletBrep::calc_mate_geom], [FilletBrep::calc_mate_geom_with]
SmFilletEdge::CalcCornerEdgeGeomSmFilletGeom.cpp:527051[FilletBrep::calc_corner_edge_geom]
SmFilletEdge::CalcFilletIntFilletSmFilletGeom.cpp:5959193[FilletBrep::calc_edge_fillet_int_fillet]
SmFilletGeom::ReCalcFilletGeomSmFilletGeom.cpp:11351448[FilletBrep::re_calc_fillet_geom]
SmFilletGeom::TopologySplitSmFilletGeom.cpp:12596248[FilletBrep::topology_split]
Module file-header table (9 rows)
RustUpstream
[FilletBrep::calc_corner_vert_geom]SmFilletVertex::CalcCornerVertGeom
[FilletBrep::calc_mate_geom], [FilletBrep::calc_mate_geom_with]SmFilletVertex::CalcMateGeom
[FilletBrep::calc_corner_edge_geom]SmFilletEdge::CalcCornerEdgeGeom
[FilletBrep::calc_edge_fillet_int_fillet]SmFilletEdge::CalcFilletIntFillet
[FilletBrep::re_calc_fillet_geom]SmFilletGeom::ReCalcFilletGeom
[FilletBrep::re_calc_fillet_geom_through]none (#2406: ReCalcFilletGeom through an End's sections)
[FilletBrep::calc_cross_sections]the tail of SmFilletGeom::ReCalcFilletGeom
[FilletBrep::topology_split]SmFilletGeom::TopologySplit
[new_solver_fillet_geom]SmFilletGeom(pFilletSolver, eType) with a base SmFilletSolver (CO-PORTED from blend.fillet_geom_p5)

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