blend.fillet_geom_p4 partial
- Layer
- 60
- Upstream lines
- 2,074
- Functions
- 8
- Rust module
blend::fillet_geom::p4
Status history
- todo 2,074 lines
- partial 2,074 lines
- green 2,074 lines
- partial 2,074 lines
Source: crates/solidcore/src/blend/fillet_geom/p4.rs
Upstream: source/SMLib/src/SmFilletGeom.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
[2026-11-04 (#2400): PARTIAL, 23 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 #747, 2026-10-24: 0 deferred; the 4 topology.face_p2 deferrals of main CI e33985411 no longer occur). Corner accessors wired: CalcFilletInt2Fillets / CalcRailIntExtendedEdgeuse read the corner (type, filleted vertex, extended surfaces) through CornerLookup. difftest: 400 cases, 400 pass, 0 deferred, 0 failed. main CI e33985411 (2026-10-23): PARTIAL blend.fillet_geom_p4 cases=400 passed=396 failed=0 deferred=4 blocked_by=topology.face_p2(4). PARTIAL (edited by PR #264 blend.fillet_geom_p5, difftest re-run with identical results: sm_CreateUVCurve's surface solves name the surface via UvSurfaceHandle; calc_fillet_int_2_fillets names its two curves via blend.fillet_geom_p1's CurveObjectHandle; srf_srf_intersection / SrfSrfCurves are pub(super)): difftest 398 cases (98 fixture incl. 42 review adversarial sm_CreateUVCurve cases and 6 MakeFaceBrep solver-tolerance cases, 300 generated), 362 pass, 0 failed, 36 deferred (blend.fillet_geom_p6 36: JoinTwoFilletVertsByCurves in MakeFaceBrep, SmFilletEdge::CalcBlendingRail, GetRailIndexOfVertexuse); sm_CreateUVCurve compared fully (bit-identical); sm_SrfSrfIntersection (blend.fillet_geom_p2, wired by that unit) in the vertex calculators and the plane branch of sm_CreateUVCurve are not reached by the shim's models; RegisterExistingSSI (ported in boolean.topology_intersector_p2) stays stubbed as UNPORTED(blend.fillet_executive_p1) because it runs on the executive's intersector; InsertIntersectionTopology unit tests only (needs the fillet executive, blend.fillet_executive_p1). Only sm_CreateUVCurve compares real values; MakeFaceBrep, CalcBlendingGeom and the three vertex calculators compare early exits only (everything after JoinTwoFilletVertsByCurves or sm_SrfSrfIntersection is deferred, and the p1 model cannot put an original face on a fillet edge, so CalcRailIntExtendedEdgeuse never passes NER(pSideFace)): the porter of blend.fillet_geom_p6 must extend this runner. Built on PR #147 (blend.fillet_geom_p1) and PR #192 (blend.fillet_solver_p1), both merged. Was: 8 fns; largest: sm_CreateUVCurve, SmFilletGeom::MakeFaceBrep, SmFilletGeom::InsertIntersectionTopology, SmFilletVertex::CalcRailIntExtendedEdgeuse; cycle back-edges (call into later units; stub or co-port): blend.fillet_geom_p2(4), blend.fillet_geom_p6(4); unit-SCC #22 (220 units); 31 upstream test entry points reach this unit UPDATE (PR #204, topology.brep_p3): FilletBrep::make_face_brep takes k: &mut Kernel (topology::brep::p7::make_face_with_curves / trim_surface_with_model_space_curves make topology.brep_p3 wire edges); runner and unit test pass &mut k; the runner file is rustfmt'd. Report unchanged (370 cases, 340 pass, 0 fail, 30 deferred).; UPDATE (PR #247, blend.fillet_geom_p6): GetRailIndexOfVertexuse, JoinTwoFilletVertsByCurves, CalcBlendingRail and RecordFilletError wired to part 6 (MakeFaceBrep's 3D curve list is Option<Curve>, as the join appends). The runner's MakeFace B-rep now has the void infinite region SmBrep() makes (Brep::new_with_infinite_region; before, TrimSurfaceWithModelSpaceCurves stopped at NER(pRegion) where C++ goes on). Fix: CalcBlendingGeom reads m_vRails[i] as its loop reaches it (a NULL second rail after a failing first rail is SM_ERR, not SM_ERR_NULL_POINTER; 2 fixtures in review.json). Re-run: 400 cases, 382 pass, 0 failed, 18 deferred (topology.brep_p3 18); --seeds 2000: 2038 pass, 0 failed, 60 deferred; --perturb SENSITIVE 382/382 TOUCHED (blend.fillet_solver_p4, PR #212): FilletBrep::calc_blending_geom_of_solver (CalcBlendingGeom with the geometry's solver given), used by CalcFilletGeom. Main PR #757 independently confirms the same 400 passes and zero deferrals.
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
- 400
- 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_solver_p1 green geom.a_object green geom.extent1d green geom.extent2d green geom.object green geom.solution_array green geom.tol 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.vertex green
Soft dependencies: blend.fillet_executive_p1 green boolean.merge_p1 green boolean.topology_intersector_p2 green boolean.topology_intersector_p3 green curve.curve_p2 green curve.curve_p3 partial curve.curve_p4 green curve.curve_p5 partial curve.curve_p6 green curve.curve_p8 green geom.attribute green geom.axis2_placement green geom.extent3d green intersect.surface_intersector_p1 green nurbs.b_spline_curve_n_lib green nurbs.b_spline_curve_p2 green nurbs.b_spline_surface_n_lib_p1 green nurbs.b_spline_surface_n_lib_p2 green nurbs.b_spline_surface_p1 green surface.plane_p1 partial surface.surf_of_revolution_p1 green surface.surface_p1 green surface.surface_p11 green surface.surface_p4 green surface.surface_p5 green topology.brep_p1 green topology.brep_p7 green topology.face_p2 partial topology.face_p4 green topology.trimming_tools green topology.vertexuse green
Dependents: blend.fillet_geom_p5 green
Soft dependents: blend.fillet_corner_p2 partial blend.fillet_corner_p3 partial blend.fillet_executive_p2 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
sm_CalcNx2VertFilletXFillet | SmFilletGeom.cpp:2354 | 110 | [FilletBrep::calc_nx2_vert_fillet_x_fillet] |
SmFilletVertex::CalcFilletInt2Fillets | SmFilletGeom.cpp:2669 | 164 | [FilletBrep::calc_fillet_int_2_fillets], [FilletBrep::calc_fillet_int_2_fillets_with_context] |
SmFilletVertex::CalcRailIntExtendedEdgeuse | SmFilletGeom.cpp:2856 | 255 | [FilletBrep::calc_rail_int_extended_edgeuse] |
sm_CreateUVCurve | SmFilletGeom.cpp:4212 | 589 | [create_uv_curve], [UvCurves] |
SmFilletGeom::MakeFaceBrep | SmFilletGeom.cpp:9255 | 409 | [FilletBrep::make_face_brep] |
SmFilletGeom::GetRailIndexOfVertex | SmFilletGeom.cpp:9782 | 30 | [FilletBrep::rail_index_of_vertex] |
SmFilletGeom::InsertIntersectionTopology | SmFilletGeom.cpp:11890 | 305 | [FilletBrep::insert_intersection_topology_with_context] |
SmFilletGeom::CalcBlendingGeom | SmFilletGeom.cpp:12851 | 212 | [FilletBrep::calc_blending_geom] |
Module file-header table (9 rows)
| Rust | Upstream |
|---|---|
[create_uv_curve], [UvCurves] | sm_CreateUVCurve |
[FilletBrep::calc_nx2_vert_fillet_x_fillet] | sm_CalcNx2VertFilletXFillet |
[FilletBrep::calc_fillet_int_2_fillets], [FilletBrep::calc_fillet_int_2_fillets_with_context] | SmFilletVertex::CalcFilletInt2Fillets |
[FilletBrep::calc_rail_int_extended_edgeuse] | SmFilletVertex::CalcRailIntExtendedEdgeuse |
[FilletBrep::make_face_brep] | SmFilletGeom::MakeFaceBrep |
[FilletBrep::rail_index_of_vertex] | SmFilletGeom::GetRailIndexOfVertex |
[FilletBrep::insert_intersection_topology_with_context] | SmFilletGeom::InsertIntersectionTopology |
[FilletBrep::calc_blending_geom] | SmFilletGeom::CalcBlendingGeom |
degenerate_side_at (private) | none (solidcore #2403) |
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