topology.edgeuse_p3 green
- Layer
- 41
- Upstream lines
- 2,273
- Functions
- 5
- Rust module
topology::edgeuse::p3
Status history
- todo 2,273 lines
- partial 2,273 lines
- green 2,273 lines
Source: crates/solidcore/src/topology/edgeuse/p3.rs
Upstream: source/SMLib/src/SmEdgeuse.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
2026-10-31 (nightly fuzz run 41040730716, fuzz00246/fuzz00273/fuzz00280: a B-rep block with a ±1e300 surface control point never returns in the C++, HANG-29): PreparedBrep::new, eval and eval_prepared refuse block values above topology_edgeuse_p2::MAX_BLOCK_MAGNITUDE = 1e150 before the native export (the 2026-10-20 guard had been dropped because the runner's export ran first), and the runner's Rust side applies the same check; plan/findings/topology.edgeuse_p3--nightly-fuzz00246-00273-00280-huge-net-hangs-the-cpp.md. Gate unchanged (5611 passed). GREEN, PR #563 on main b65597902: 4789 native cases, 4789 bit-identical passes, 0 failed, 0 deferred, 0 known mismatches; all 4709 main passes retained and 80 deferrals now pass. Verified by x86_64 CI 39928207576 and full ARM64 audit. PR #581's CacheStates export/import preserves face surface cache slots and resolves the 23 Endcap.smb EvaluateBinormal mismatches; the MAX_SUBDIVISION_NODES limit remains 2^22 on 64-bit targets for the tiny adversarial faces. Coverage retains upstream files, wire/network/plane/B-spline/CrvOnSurf faces, adversarial and generated cases, exact revolution export (PR #304), and historical sensitive perturbation. CreateUVTrimCurve, GetOrCreateUVTrimCurve, EvaluateBinormal (+UV vector), NormalizedEvaluate and SmFaceuse::CollectAdjacentFaceuses angle branch are wired. Back-edges in heal.gap, topology.edge/vertexuse/loopuse/face_p2, query.edge, query.loop and topology/brep/p2.rs remain wired. WR-158 recovery joins into a discarded array, reproduced. Justified UNPORTED(topology.edgeuse_p3) remains in topology::proto_topology::p2 (opaque ProtoBrep handles without a Brep); graph export does not compare existing-curve distances with a set gap. Original API changes to Kernel and mutable Brep arguments remain documented in the port headers and findings.md. Five upstream functions; largest CreateUVTrimCurve, EvaluateBinormal, GetOrCreateUVTrimCurve, NormalizedEvaluate; cycle back-edge heal.gap(2); unit-SCC #22 (220 units); 317 upstream test entry points.
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
- 5,611
- Stored error outcomes
- 24
- 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: curve.crv_on_surf green curve.curve_p2 green geom.a_object green geom.extent1d green geom.extent2d green geom.extent3d green geom.object green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green nurbs.b_spline_curve_p1 green nurbs.b_spline_curve_p2 green surface.surface_p1 green surface.surface_p2 partial surface.surface_p5 green topology.edge green topology.edgeuse_p1 green
Soft dependencies: geom.axis2_placement green geom.geom_utility_p1 green intersect.surface_drop_lib_p1 partial intersect.surface_drop_lib_p3 green nurbs.b_spline_curve_n_lib green surface.surface_p3 green surface.surface_p4 green surface.surface_p7 green topology.face_p2 partial topology.vertex green
Dependents: blend.identify_fillet green topology.brep_cutting partial topology.brep_p1 green topology.brep_p6 green topology.brep_validation green topology.face_p3 green
Soft dependents: blend.fillet_corner_p1 green blend.fillet_corner_p2 partial blend.fillet_corner_p3 partial blend.fillet_geom_p2 green blend.fillet_geom_p6 green blend.fillet_solver_p1 green blend.fillet_solver_p2 green blend.fillet_solver_p4 green blend.fillet_standard_solver_p1 green blend.fillet_standard_solver_p2 green blend.hcr green boolean.merge_p2 green heal.gap green heal.stitch_p1 green offset.offset_executive_p1 partial offset.offset_geometry_creation partial query.face_p3 green query.loop green sweep.topology_sweep green topology.brep_p2 green topology.brep_p3 partial topology.brep_p4 green topology.brep_p5 green topology.face_p1 green topology.face_p4 green topology.proto_topology_p2 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmEdgeuse::CreateUVTrimCurve | SmEdgeuse.cpp:1230 | 1496 | [create_uv_trim_curve], [CreatedUvTrimCurve] |
SmEdgeuse::EvaluateBinormal | SmEdgeuse.cpp:2740 | 469 | [evaluate_binormal], [BinormalOptions] |
SmEdgeuse::NormalizedEvaluate | SmEdgeuse.cpp:3905 | 144 | [normalized_evaluate], [NormalizedEval] |
SmEdgeuse::GetOrCreateUVTrimCurve | SmEdgeuse.cpp:4259 | 150 | [get_or_create_uv_trim_curve], [UvTrimCurveFetch] |
SmEdgeuse::GetOrCreateUVTrimCurve | SmEdgeuse.cpp:4418 | 14 | [get_or_create_uv_trim_curve], [UvTrimCurveFetch] |
Module file-header table (5 rows)
| Rust | Upstream |
|---|---|
[create_uv_trim_curve], [CreatedUvTrimCurve] | SmEdgeuse::CreateUVTrimCurve |
[get_or_create_uv_trim_curve], [UvTrimCurveFetch] | SmEdgeuse::GetOrCreateUVTrimCurve (both overloads) |
[evaluate_binormal], [BinormalOptions] | SmEdgeuse::EvaluateBinormal |
[normalized_evaluate], [NormalizedEval] | SmEdgeuse::NormalizedEvaluate |
[calc_sector_angle] | SmEdgeuse::CalcSectorAngle (no unit owns it; ported for the fork's IsKnifeEdge) |
Upstream tests reaching this unit
prog_test:my_test_surface_closest_point, prog_test:my_test_drop_point, prog_test:my_test_matrix, prog_test:my_test_reversed_line_join, SM_API_test:TestSmCreateRectangle, SM_API_test:TestSmCreateRegularPolygon