solidcore

Units / blend

blend.fillet_corner_p2 partial

Layer
64
Upstream lines
1,892
Functions
16
Rust module
blend::fillet_corner::p2

Status history

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

Source: crates/solidcore/src/blend/fillet_corner/p2.rs

Upstream: source/SMLib/inc/SmFilletCorner.h, source/SMLib/src/SmFilletCorner.cpp

Port-plan notes

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

[2026-11-06 (#2349 closed Turn): PARTIAL, cases=547 passed=519 failed=0 deferred=0 rejected=24 known_mismatch=4 (main 9856ffee5); 44 cases that built SmFilletNx1ClosedCorner directly are retired with that class, among them the 2 #2400 known mismatches; the 4 known mismatches left are the exact surface extension's (plan/findings/blend.fillet_corner_p3--issue-2349-closed-turn-diverges-from-cpp.md, plan/findings/surface.exact-extension--difftest-cases-moved-2026-11-05.md)] [2026-11-04 (#2400): PARTIAL, 2 known mismatches: the blend corner is the default and the old corner code is deleted, so these cases no longer agree with C++ v1.0.1's pinned corner (plan/findings/blend.fillet_corner_p3--blend-corner-default-diverges-from-cpp-v1-0-1-2026-11-04.md)] GREEN (PR #1011): wired NoteFilletError in CreateEndPatch (blend::fillet_corner::p1::FilletCorner::create_end_patch) and verified zero UNPORTED stubs remain in blend::fillet_corner::p2; PASS blend.fillet_corner_p2 cases=588 passed=569 failed=0 deferred=0 max_rel_err=0e0 with_values=558 no_values=11 vacuous=0 rejected=19 (--perturb SENSITIVE 569/569). PR #641 (remaining functions): MakeVariableRadiusFillet, MakeAnalyticCornerSurface (SER/NER exits read as TRUE, WR-254), RecordFilletError, SmFilletConvexNxNCorner::AdjustTopology and SmFilletNx1ClosedCorner::AdjustTangentCorner ported in blend::fillet_corner::p2; all 16 fns ported. SmFilletEdge::MakeFilletEdge wired (FilletBrep::make_fillet_edge), so AdjustConcaveCornerTopology runs to the end. Stubs left: MakeConstantRadiusFillet (UNPORTED(blend.fillet_corner_p1), not ported there); the two RecordFilletError callers in fillet_geom::p3/p5 stay UNPORTED(blend.fillet_corner_p2), justified (findings.md 'blend.fillet_corner_p2: RecordFilletError call sites': they hold only a FilletCornerId). New difftest method analytic (P3_ANALYTIC on the corner_p3 shim, 120 built-in cases: sphere octants, chamfers, rail-rail corners, early exits; the corner's surfaces compared value by value). Half of the analytic cases use real SmLine / SmCircle edges (which found and fixed a lost SmLine generator in blend.fillet_corner_p1's sm_CreateSrfOfRevolution, findings.md). PARTIAL blend.fillet_corner_p2 cases=588 passed=544 failed=0 deferred=25 max_rel_err=0e0 with_values=538 no_values=6 vacuous=0 rejected=19 blocked_by=blend.fillet_corner_p1(24),blend.fillet_executive_p1(1) (main: 468 cases, 446 passed, 19 deferred). Coverage limits (no fillet solvers in the corner model): findings.md 'blend.fillet_corner_p2: what the corner harness covers'. main CI e33985411 (2026-10-23): PARTIAL blend.fillet_corner_p2 cases=468 passed=446 failed=0 deferred=19 rejected=3 blocked_by=blend.fillet_corner_p2(1),blend.fillet_executive_p1(1),blend.fillet_geom_p5(17). 16 fns; largest: SmFilletCorner::MakeVariableRadiusFillet, SmFilletNx1ClosedCorner::AdjustTangentCorner, SmFilletCorner::MakeAnalyticCornerSurface, SmFilletConvexNxNCorner::AdjustTopology; unit-SCC #22 (220 units); 31 upstream test entry points reach this unit; CO-PORTED in blend.fillet_corner_p3 (PR #256): the constructors of SmFillet1x1Corner, SmFilletNx1ClosedCorner, SmFilletNx1Corner, SmFillet3x2MixedConvexityCorner, SmFilletNx2Corner, SmFilletNxNCorner -> blend::fillet_corner::p3::FilletCorner::new (FilletCornerKind); its stubs there: sm_FindConcaveEdgeuses, MakeAnalyticCornerSurface, AdjustConcaveCornerTopology, SmFilletConvexNxNCorner::AdjustTopology, SmFilletNx1ClosedCorner::AdjustTangentCorner PARTIAL (PR #268, bluecmd; landed by batch/finish-1): sm_FindConcaveEdgeuses, SmFilletNx2Corner::AdjustConcaveCornerTopology, SmFilletCorner::UpdateSplitFace and the Nx1-closed/Nx2 GetTangentFilletSolver overrides ported in blend::fillet_corner::p2 (Kernel threaded as on main; UpdateSplitFace takes the corners slice that resolves a fillet edge's corner for ShouldSwapFaces). Not yet ported (still UNPORTED(blend.fillet_corner_p2) in fillet_corner::p3 and fillet_geom::p3/p5): MakeVariableRadiusFillet, MakeAnalyticCornerSurface, RecordFilletError, SmFilletConvexNxNCorner::AdjustTopology, SmFilletNx1ClosedCorner::AdjustTangentCorner. The shim's stale p3_check_split guard (-3 for ShouldSwapFaces) is replaced by blend.fillet_geom_p6's NULL-dereference guard (-2). difftest: 468 cases, 286 passed, 0 failed, 179 deferred, 3 rejected (the 5 former classify_face_point mismatches now defer at intersect.surface_drop_lib_p3, see findings.md). [2026-10-23 (PR #605): the shared inexact check (blend_fillet_corner_p1.rs) defers on ImportTypes::inexact_surface, so cone/sphere/extrusion faces compare values; surface.surface_p2 38, surface.surf_of_extrusion_p2 94 and harness 7 deferrals gone: PARTIAL blend.fillet_corner_p2 cases=468 passed=446 failed=0 deferred=19 max_rel_err=0e0 with_values=440 no_values=6 vacuous=0 rejected=3 blocked_by=blend.fillet_corner_p2(1),blend.fillet_executive_p1(1),blend.fillet_geom_p5(17)]

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
547
Stored error outcomes
3
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_solver_p1 green curve.curve_p2 green geom.extent1d green geom.object green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green intersect.surface_intersector_p1 green nurbs.b_spline_curve_p1 green surface.surface_p2 partial topology.edge green topology.edgeuse_p1 green topology.vertex green

Soft dependencies: blend.fillet_executive_p1 green blend.fillet_executive_p2 green blend.fillet_geom_p3 green blend.fillet_geom_p4 partial blend.fillet_geom_p5 green blend.fillet_geom_p6 green blend.fillet_standard_solver_p2 green curve.curve_p1 green geom.extent2d green geom.geom_utility_p1 green nurbs.b_spline_curve_p2 green nurbs.b_spline_surface_p2 green surface.offset_surface green surface.surface_p1 green surface.surface_p4 green surface.surface_p7 green topology.edgeuse_p3 green topology.face_p2 partial topology.proto_topology_p1 green topology.vertexuse green

Dependents: audit.recursion green

Soft dependents: none

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmFilletNxNCorner::SmFilletNxNCornerSmFilletCorner.h:5269
sm_FindConcaveEdgeusesSmFilletCorner.cpp:51329[find_concave_edgeuses]
SmFilletCorner::MakeVariableRadiusFilletSmFilletCorner.cpp:2492534[FilletCorner::make_variable_radius_fillet], [FilletCorner::make_variable_radius_fillet_with]
SmFilletCorner::MakeAnalyticCornerSurfaceSmFilletCorner.cpp:3379301[FilletCorner::make_analytic_corner_surface], [FilletCorner::make_analytic_corner_surface_with]
SmFilletCorner::UpdateSplitFaceSmFilletCorner.cpp:395919[FilletCorner::update_split_face]
SmFilletCorner::RecordFilletErrorSmFilletCorner.cpp:398524[FilletCorner::record_fillet_error]
SmFillet1x1Corner::SmFillet1x1CornerSmFilletCorner.cpp:434718
SmFillet3x2MixedConvexityCorner::SmFillet3x2MixedConvexityCornerSmFilletCorner.cpp:459518
SmFilletNx1ClosedCorner::SmFilletNx1ClosedCornerSmFilletCorner.cpp:490614
SmFilletNx1ClosedCorner::GetTangentFilletSolverSmFilletCorner.cpp:514119[FilletCorner::tangent_fillet_solver_nx2]
SmFilletConvexNxNCorner::AdjustTopologySmFilletCorner.cpp:5412222[FilletCorner::adjust_topology_convex_nxn], [FilletCorner::adjust_topology_convex_nxn_with]
SmFilletNx1Corner::SmFilletNx1CornerSmFilletCorner.cpp:582518
SmFilletNx2Corner::SmFilletNx2CornerSmFilletCorner.cpp:646218
SmFilletNx2Corner::GetTangentFilletSolverSmFilletCorner.cpp:686927[FilletCorner::tangent_fillet_solver_nx2]
SmFilletNx2Corner::AdjustConcaveCornerTopologySmFilletCorner.cpp:7071203[FilletCorner::adjust_concave_corner_topology]
SmFilletNx1ClosedCorner::AdjustTangentCornerSmFilletCorner.cpp:7281419
Module file-header table (8 rows)
RustUpstream
[find_concave_edgeuses]sm_FindConcaveEdgeuses
[FilletCorner::adjust_concave_corner_topology]SmFilletNx2Corner::AdjustConcaveCornerTopology
[FilletCorner::adjust_topology_convex_nxn], [FilletCorner::adjust_topology_convex_nxn_with]SmFilletConvexNxNCorner::AdjustTopology
[FilletCorner::make_analytic_corner_surface], [FilletCorner::make_analytic_corner_surface_with]SmFilletCorner::MakeAnalyticCornerSurface
[FilletCorner::make_variable_radius_fillet], [FilletCorner::make_variable_radius_fillet_with]SmFilletCorner::MakeVariableRadiusFillet
[FilletCorner::record_fillet_error]SmFilletCorner::RecordFilletError
[FilletCorner::update_split_face]SmFilletCorner::UpdateSplitFace
[FilletCorner::tangent_fillet_solver_nx2]SmFilletNx2Corner::GetTangentFilletSolver

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