solidcore

Units / topology

topology.edgeuse_p2 green

Layer
36
Upstream lines
1,013
Functions
10
Rust module
topology::edgeuse::p2

Status history

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

Source: crates/solidcore/src/topology/edgeuse/p2.rs

Upstream: source/SMLib/src/SmEdgeuse.cpp

Port-plan notes

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

2026-10-30 (nightly fuzz00237, run 41040730716: a level-0 edgeuse_side with smp_count 2^31 timed out on the Rust side): the level-0 runner's Rust side applies the FFI's checks (solidcore_ffi topology_edgeuse_p2::validate_pole, split out of pole) to the same arguments and B-rep block as the C++ side, so the case is a harness error on both sides; the library is unchanged (the count is the caller's work request; its only library caller passes 6); regression crates/difftest/tests/fuzz_corpus/topology.edgeuse_p2.json, plan/findings/topology.edgeuse_p2--level0-smp-count-2-31-rust-side-runs-past-fuzz-limit-fuzz00237.md. #1419 WP2 (PR #1472): SmEdgeuse::HasDogLegNearPole and IsEdgeuseSideInSurface -> topology::edgeuse::p2::{has_dog_leg_near_pole, is_edgeuse_side_in_surface}; difftest 4795 cases, 4795 passed, 0 deferred (212 new level0 cases over every edge use; shim skips (-2) the upstream out-of-bounds read for intersector polygons of < 4 points and the null-curve dereference). GREEN, PR #563 on main b65597902: 4583 native cases, 4583 bit-identical passes, 0 failed, 0 deferred; all 4193 main passes retained and 390 deferrals now pass. Verified by x86_64 CI 39928207576 and full ARM64 audit. Coverage: 2360 cases on 15 upstream .smb B-reps with rebuild/validate-only variants, 485 constructed B-rep cases, 1722 adversarial fixtures at scales 1e-4..1e4 with rational/pinched/sub-domain surfaces and tolerance-limit UV shifts, plus 16 generated cases. Shared graph export/import is topology.edgeuse_p1 (sc_edgeuse_graph.h), including PR #304's exact revolution export; historical inexact analytic imports and dependency deferrals are documented in findings.md. Historical perturbation was sensitive. WR-84 (IsConvexRadialSector SER as TRUE) and WR-85 (CheckAndSetUVTrimCurve deletes caller curve) retained. Eight functions, largest EvaluateBinormalStepOff, CheckAndSetUVTrimCurve, IsTangentSector, IsConvexRadialSector; cycle back-edges topology.edge(9), heal.gap(5), topology.edgeuse_p3(4), blend.fillet_geom_p1(1), topology.brep_p1(1); 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
4,795
Stored error outcomes
85
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: geom.extent1d green geom.extent2d green geom.local_solve_nd green geom.object green geom.solution_array green geom.vector2d green geom.vector3d green surface.surface_p2 partial topology.edgeuse_p1 green topology.face_p2 partial topology.topology green

Soft dependencies: curve.crv_on_surf green curve.curve_p2 green curve.curve_p6 green geom.tol green nurbs.b_spline_curve_p1 green surface.surface_p1 green surface.surface_p4 green surface.surface_p7 green

Dependents: blend.fillet_geom_p1 green topology.brep_p3 partial topology.brep_p6 green topology.edge green

Soft dependents: blend.fillet_corner_p3 partial blend.fillet_solver_p1 green blend.fillet_solver_p3 green blend.fillet_solver_p5 green offset.offset_executive_p1 partial offset.offset_executive_p2 partial offset.offset_geometry_creation partial query.edge green topology.brep_p10 green topology.brep_p2 green topology.brep_p4 green topology.brep_p7 green topology.brep_p9 green topology.face_p3 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmEdgeuse::SmEdgeuseSmEdgeuse.cpp:5117[crate::topology::Edgeuse] (Default, Drop)
SmEdgeuse::~SmEdgeuseSmEdgeuse.cpp:7416[crate::topology::Edgeuse] (Default, Drop)
SmEdgeuse::IsTangentSectorSmEdgeuse.cpp:554103[is_tangent_sector]
SmEdgeuse::IsEdgeuseSideInSurfaceSmEdgeuse.cpp:871180[is_edgeuse_side_in_surface], [EdgeuseSide]
SmEdgeuse::EvaluateBinormalStepOffSmEdgeuse.cpp:3360166[evaluate_binormal_step_off], [StepOffOptions], [BinormalEval]
SmEdgeuse::IsConvexRadialSectorSmEdgeuse.cpp:359262[is_convex_radial_sector]
SmEdgeuse::HasDogLegNearPoleSmEdgeuse.cpp:3663233[has_dog_leg_near_pole], [DogLeg]
SmEdgeuse::RebuildUVTrimCurveSmEdgeuse.cpp:443916[rebuild_uv_trim_curve]
SmEdgeuse::CheckAndSetUVTrimCurveSmEdgeuse.cpp:4732160[check_and_set_uv_trim_curve], [CheckAndSetUvTrimCurve]
SmEdgeuse::NotifySmEdgeuse.cpp:547960[notify]
Module file-header table (11 rows)
RustUpstream
[crate::topology::Edgeuse] (Default, Drop)SmEdgeuse::SmEdgeuse, SmEdgeuse::~SmEdgeuse
[is_tangent_sector]SmEdgeuse::IsTangentSector
[evaluate_binormal_step_off], [StepOffOptions], [BinormalEval]SmEdgeuse::EvaluateBinormalStepOff
[evaluate_binormal_step_off_into]SmEdgeuse::EvaluateBinormalStepOff (out-params in place)
[is_convex_radial_sector]SmEdgeuse::IsConvexRadialSector
[rebuild_uv_trim_curve]SmEdgeuse::RebuildUVTrimCurve
[check_and_set_uv_trim_curve], [CheckAndSetUvTrimCurve]SmEdgeuse::CheckAndSetUVTrimCurve
[notify]SmEdgeuse::Notify
[is_edgeuse_side_in_surface], [EdgeuseSide]SmEdgeuse::IsEdgeuseSideInSurface
[has_dog_leg_near_pole], [DogLeg]SmEdgeuse::HasDogLegNearPole
is_contained (private)SM_IS_CONTAINED (SmMath.h)

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