topology.edgeuse_p1 green
- Layer
- 33
- Upstream lines
- 1,158
- Functions
- 58
- Rust module
topology::edgeuse::p1
Status history
- todo 1,157 lines
- partial 1,157 lines
- green 1,157 lines
Source: crates/solidcore/src/topology/edgeuse/p1.rs
Upstream: source/SMLib/inc/SmEdgeuse.h, source/SMLib/inc/SmFaceuse.h, source/SMLib/src/SmEdgeuse.cpp, source/SMLib/src/SmFaceuse.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
Rust-read file sources (2026-10-30): the Rust side reads .smb inputs with own_reader::brep_in_order (Rust reader, EDGEUSE_GRAPH renumbering, Rust init_gaps walk) instead of importing the C++ export, so UV trim owners (own_builder::uv_owner_index), drop records and cached gap states are compared for file cases too (the file-case owner strip is gone); Counts: see the PR difftest summary.. #700 stack (opt-in Kernel::fixes.topology_failed_evaluations_propagate, WR-263/WR-264, default off = SMLib): default difftest unchanged; with the fix on, GetStartPointUVLoopGap and sm_CalcDistAndDev propagate failed evaluations and drops. Issue #682 (2026-10-24): both shared B-rep graph exporters/importers preserve native ellipse/circle records, stored rational NURBs and unchanged UV trims. GREEN: 5554 cases, 5554 pass, 0 failed, 0 deferred, max_rel_err 0; adds 1152 cases over 48 native ellipse/circle face configurations (three planes, full/partial arcs, non-unit NURB intervals, inside-out and out-of-bounds flags, small/large scales), sampling edge/UV/lifted points at matching parameters. Native regression checks both import paths, bitwise UV preservation, old-format fallback deferral and malformed-record rejection. GREEN after the Cone DropPointFast dispatch (area 6b, 2026-10-22): 4402 cases, 4402 pass, 0 deferred (was surface.surface_p2 50), 0 failed, max_rel_err 0. EXACT SmSurfOfRevolution EXPORT (shared graph exports carry revolution faces exactly, 2026-10-20): difftest 4402 cases, 4168 pass, 0 failed, 234 deferred (surface.surface_p2 150, surface.surf_of_extrusion_p2 84), max_rel_err 0; 3968 -> 4168 pass (topology.brep_p10 stand-in deferral 200 -> 0). Earlier: PARTIAL: difftest 2722 cases (2706 fixture: 1155 on 15 upstream .smb B-reps read by SmBrep::ReadFromFile, with and without RebuildUVTrimCurves; 1115 on prog_test my_test_topology's wire network, wire edges and faces from B-spline curves/surfaces and real SmPlanes, plus the geometry statics on B-splines and SmPlanes; 436 review adversarial in fixtures/topology.edgeuse_p1/adversarial.json: pole/pinch, tiny and huge scale (to 1e200), uv up to 100 domain lengths outside, 1% seam tolerance edge, null/drop-curve SetUVTrimCurve, rebuilt .smb gaps; 16 generated, 6000 more checked once), 2625 pass, 97 deferred (surface.surface_point_solve_p3 90, topology.edgeuse_p3 7; heal.gap wired; SmEdge::SetTolerance/SmVertex::SetTolerance by topology.edge PR #103; formerly 28 surface_point_solve_p3: SmEdgeuse::GetStartPointUVLoopGap now drops through Surface::drop_point (surface.surface_p5 wired), whose global point solve (SmSurface::GlobalPointSolve_1) is deferred in the report, topology.edgeuse_p3 7), max_rel_err 0; --perturb SENSITIVE. There is no Rust B-rep reader/builder yet, so the runner imports the graph the shim exports (raw members, traversal order) into topology::Brep. Co-ports the minimal use records into the topology skeleton (see CO-PORTED notes of topology.edge, topology.loopuse, topology.vertexuse, topology.shell, topology.vertex, topology.face_p2, topology.brep_p1, heal.gap, topology.proto_topology_p1); adds curve::line::Line::from_parts (raw constructor for the import). SmBrep::ReadFromFile crashes on SmallBox.smb and Platform.smb (plan/findings.md), so they are not used. Back-edge stubs UNPORTED(topology.edgeuse_p1) in surface::trim_srf_cache (GetUVTrimCurve), intersect::point_class (GetBrep, GetEdge) and geom::tol (GetZoneTol3d dispatch) are not wired: those callers hold opaque object handles without a Brep (plan/findings.md). Plan notes: 57 fns; largest: SmEdgeuse::SetUVTrimCurve, SmEdgeuse::CalcMaxEdgeFaceGap, SmFaceuse::CollectAdjacentFaceuses, SmFindStepOffENFO::Evaluate; cycle back-edges (call into later units; stub or co-port): heal.gap(14), topology.edge(13), topology.loopuse(9), topology.vertexuse(4), topology.face_p2(2), topology.shell(2), topology.edgeuse_p3(1); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit Review PR #106 recertification after merged #50: 2722 cases, 2711 pass, 11 deferred, 0 failed, max_rel_err=0.0; deferred: surface.surface_p8 4, topology.edgeuse_p3 7. Re-run after merging PR #106 (surface.surface_point_solve_p3 wired, 2026-10-15): 2722 cases, 2711 pass, 11 deferred (surface.surface_p8 4, topology.edgeuse_p3 7), 0 failed, max_rel_err 0. Review fixes (2026-10-16): the gap ops now compare the computed gap values (gap_3d, edge_t, face_uv; edge_t0, edge_t1), SmPlane faces are imported exactly (origin, X/Y axes, UV scale, STEP domain) instead of Plane::from_normal, and cases evaluating analytic geometry imported as its B-spline part are deferred (inexact_geometry, as topology.edgeuse_p2): 4402 cases (adds fixtures/topology.edgeuse_p1/review_gap_values.json, 1680 cases), 3961 pass, 441 deferred (surface.cone_p1 50, surface.sphere 100, surface.surf_of_extrusion_p2 84, topology.brep_p10 200, topology.edgeuse_p3 7), 0 failed, max_rel_err 0; --perturb SENSITIVE (3961/3961). [topology.edgeuse_p3 wired (PR #117): 2722 cases, 2718 pass, 0 failed, 4 deferred (surface.surface_p8 4)]
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,586
- Stored error outcomes
- 28
- 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.curve_p2 green geom.extent1d green geom.matrix green geom.object green geom.tol green geom.vector3d green surface.surface_p2 partial topology.proto_topology_p1 green topology.topology green
Soft dependencies: geom.vector2d green nurbs.b_spline_curve_p1 green surface.surface_p1 green surface.surface_p5 green surface.surface_p7 green
Dependents: blend.fillet_corner_p1 green blend.fillet_corner_p2 partial blend.fillet_corner_p3 partial blend.fillet_custom_solver green blend.fillet_executive_p1 green blend.fillet_geom_p1 green blend.fillet_geom_p2 green blend.fillet_geom_p3 green blend.fillet_geom_p4 partial blend.fillet_geom_p5 green blend.fillet_geom_p6 green blend.fillet_removal green blend.fillet_solver_p1 green blend.fillet_solver_p2 green blend.fillet_solver_p3 green blend.fillet_solver_p4 green blend.fillet_standard_solver_p1 green blend.fillet_standard_solver_p2 green blend.hcr green blend.identify_fillet green boolean.merge_p1 green boolean.merge_p2 green boolean.merge_p4 green boolean.topology_intersector_p3 green heal.gap green heal.stitch_p1 green mass.integrator partial offset.offset_executive_p1 partial offset.offset_executive_p2 partial offset.offset_geometry_creation partial primitive.primitive_creation_p1 green query.edge green query.face_p1 green query.face_p3 green sweep.topology_sweep green topology.brep_constructor green topology.brep_p1 green topology.brep_p10 green topology.brep_p2 green topology.brep_p3 partial topology.brep_p4 green topology.brep_p5 green topology.brep_p6 green topology.brep_p7 green topology.brep_p9 green topology.edge green topology.edgeuse_p2 green topology.edgeuse_p3 green topology.face_p1 green topology.face_p2 partial topology.face_p3 green topology.face_p4 green topology.loopuse green topology.shell green topology.topology_traverser green topology.trimming_tools green topology.vertex green topology.vertexuse green
Soft dependents: blend.fillet_executive_p2 green blend.fillet_executive_p3 partial blend.fillet_intersector green blend.fillet_solver_p5 green boolean.merge_p5 green boolean.topology_intersector_p1 green heal.face_props green heal.heal_data_p1 green heal.heal_data_p2 green heal.heal_data_p3 green query.api_queries green query.loop green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmEdgeuse::DeleteUVTrimCurve | SmEdgeuse.h:174 | 1 | [delete_uv_trim_curve] |
SmEdgeuse::SetMemberUVTrimCurve | SmEdgeuse.h:179 | 11 | [set_member_uv_trim_curve] |
SmEdgeuse::GetEdge | SmEdgeuse.h:264 | 1 | [edge] |
SmEdgeuse::GetOrientation | SmEdgeuse.h:269 | 1 | [orientation], [set_orientation] |
SmEdgeuse::GetCWEdgeuse | SmEdgeuse.h:270 | 1 | [cw_edgeuse], [ccw_edgeuse] |
SmEdgeuse::GetCCWEdgeuse | SmEdgeuse.h:271 | 1 | [cw_edgeuse], [ccw_edgeuse] |
SmEdgeuse::HasEdgeFaceGap | SmEdgeuse.h:299 | 1 | [has_edge_face_gap], [has_edge_ccw_edge_gap] |
SmEdgeuse::HasEdgeCCWEdgeGap | SmEdgeuse.h:300 | 1 | [has_edge_face_gap], [has_edge_ccw_edge_gap] |
SmEdgeuse::IsMaxEdgeFaceGapInit | SmEdgeuse.h:304 | 1 | [is_max_edge_face_gap_init] |
SmEdgeuse::SetOrientation | SmEdgeuse.h:367 | 2 | [orientation], [set_orientation] |
SmEdgeuse::GetClassString | SmEdgeuse.h:407 | 1 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmEdgeuse::GetType | SmEdgeuse.h:407 | 1 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmEdgeuse::GetTypeString | SmEdgeuse.h:407 | 1 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmFaceuse::~SmFaceuse | SmFaceuse.h:45 | 5 | [crate::topology::Faceuse] |
SmFaceuse::GetShell | SmFaceuse.h:60 | 1 | [faceuse_shell], [faceuse_region], [faceuse_face], [faceuse_mate], [faceuse_orientation] |
SmFaceuse::GetRegion | SmFaceuse.h:61 | 1 | [faceuse_shell], [faceuse_region], [faceuse_face], [faceuse_mate], [faceuse_orientation] |
SmFaceuse::GetFace | SmFaceuse.h:62 | 1 | [faceuse], [face], [loopuse] |
SmFaceuse::GetMate | SmFaceuse.h:63 | 1 | [mate], [radial] |
SmFaceuse::Get1stLoopuse | SmFaceuse.h:65 | 1 | |
SmFaceuse::GetOrientation | SmFaceuse.h:66 | 1 | [orientation], [set_orientation] |
SmFaceuse::GetClassString | SmFaceuse.h:88 | 1 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmFaceuse::GetType | SmFaceuse.h:88 | 1 | [FACEUSE_TYPE], [FACEUSE_TYPE_STRING], [FACEUSE_CLASS_STRING], [faceuse_is_kind_of] |
SmFaceuse::GetTypeString | SmFaceuse.h:88 | 1 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmEdgeuse::IsStrut | SmEdgeuse.cpp:294 | 8 | [is_strut] |
SmEdgeuse::GetVertexuse | SmEdgeuse.cpp:308 | 4 | [vertexuse] |
SmEdgeuse::GetFaceuse | SmEdgeuse.cpp:318 | 8 | [faceuse], [face], [loopuse] |
SmEdgeuse::GetFace | SmEdgeuse.cpp:332 | 7 | [faceuse], [face], [loopuse] |
SmEdgeuse::GetLoopuse | SmEdgeuse.cpp:345 | 10 | [faceuse], [face], [loopuse] |
SmEdgeuse::IsLoopEdgeuse | SmEdgeuse.cpp:361 | 5 | [is_loop_edgeuse], [is_shell_edgeuse] |
SmEdgeuse::GetCornerMateEdgeuse | SmEdgeuse.cpp:372 | 10 | [corner_mate_edgeuse] |
SmEdgeuse::IsShellEdgeuse | SmEdgeuse.cpp:513 | 5 | [is_loop_edgeuse], [is_shell_edgeuse] |
SmEdgeuse::GetShell | SmEdgeuse.cpp:524 | 9 | [shell], [brep] |
SmEdgeuse::IsConnectedTo | SmEdgeuse.cpp:806 | 39 | [is_connected_to] |
sm_CalcDistAndDev | SmEdgeuse.cpp:1065 | 49 | [calc_dist_and_dev] |
sm_AreSeamCurves | SmEdgeuse.cpp:1122 | 39 | [are_seam_curves] |
SmFindStepOffENFO::SmFindStepOffENFO | SmEdgeuse.cpp:3222 | 8 | [FindStepOff] |
SmFindStepOffENFO::~SmFindStepOffENFO | SmEdgeuse.cpp:3231 | 1 | |
SmFindStepOffENFO::Evaluate | SmEdgeuse.cpp:3246 | 83 | [FindStepOff] |
SmEdgeuse::GetMate | SmEdgeuse.cpp:3536 | 18 | [mate], [radial] |
SmEdgeuse::GetRadial | SmEdgeuse.cpp:3561 | 18 | [mate], [radial] |
SmEdgeuse::SetUVTrimCurve | SmEdgeuse.cpp:4473 | 246 | [set_uv_trim_curve], [UvTrimCurveArg] |
SmEdgeuse::GetMaxEdgeFaceGap | SmEdgeuse.cpp:4904 | 19 | [max_edge_face_gap], [edge_ccw_edge_gap] |
SmEdgeuse::GetEdgeCCWEdgeGap | SmEdgeuse.cpp:4950 | 19 | [max_edge_face_gap], [edge_ccw_edge_gap] |
SmEdgeuse::GetTolerance | SmEdgeuse.cpp:5064 | 6 | [tolerance] |
SmEdgeuse::CalcMaxEdgeFaceGap | SmEdgeuse.cpp:5206 | 99 | [calc_max_edge_face_gap], [calc_edge_ccw_edge_gap] |
SmEdgeuse::CalcEdgeCCWEdgeGap | SmEdgeuse.cpp:5312 | 73 | [calc_max_edge_face_gap], [calc_edge_ccw_edge_gap] |
SmEdgeuse::GetBrep | SmEdgeuse.cpp:6407 | 5 | [shell], [brep] |
SmEdgeuse::GetUVTrimCurve | SmEdgeuse.cpp:6420 | 22 | [uv_trim_curve], [drop_curve_fail] |
SmEdgeuse::GetDropCurveFail | SmEdgeuse.cpp:6448 | 17 | [uv_trim_curve], [drop_curve_fail] |
SmEdgeuse::GetUVTrimCurvePointer | SmEdgeuse.cpp:6471 | 12 | [uv_trim_curve_pointer] |
SmEdgeuse::GetStartPointUVLoopGap | SmEdgeuse.cpp:6491 | 57 | [start_point_uv_loop_gap] |
SmEdgeuse::IsKindOf | SmEdgeuse.cpp:6618 | 4 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmFaceuse::SmFaceuse | SmFaceuse.cpp:41 | 10 | [crate::topology::Faceuse] |
SmFaceuse::GetLoopuses | SmFaceuse.cpp:57 | 38 | [faceuse_loopuses], [faceuse_edgeuses] |
SmFaceuse::GetEdgeuses | SmFaceuse.cpp:101 | 32 | [faceuse_loopuses], [faceuse_edgeuses] |
SmFaceuse::GetNeighbors | SmFaceuse.cpp:140 | 49 | [faceuse_neighbors] |
SmFaceuse::CollectAdjacentFaceuses | SmFaceuse.cpp:235 | 87 | [faceuse_collect_adjacent] |
SmFaceuse::IsKindOf | SmFaceuse.cpp:505 | 4 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
Module file-header table (39 rows)
| Rust | Upstream |
|---|---|
[TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] | SmEdgeuse::GetType, GetTypeString, GetClassString, IsKindOf |
[FACEUSE_TYPE], [FACEUSE_TYPE_STRING], [FACEUSE_CLASS_STRING], [faceuse_is_kind_of] | SmFaceuse::GetType, GetTypeString, GetClassString, IsKindOf |
[crate::topology::Edgeuse] | SmEdgeuse (members; Default is the constructor) |
[crate::topology::Faceuse] | SmFaceuse (members; Default is SmFaceuse(), Drop ~SmFaceuse) |
[edge] | SmEdgeuse::GetEdge |
[orientation], [set_orientation] | SmEdgeuse::GetOrientation, SetOrientation |
[cw_edgeuse], [ccw_edgeuse] | SmEdgeuse::GetCWEdgeuse, GetCCWEdgeuse |
[has_edge_face_gap], [has_edge_ccw_edge_gap] | SmEdgeuse::HasEdgeFaceGap, HasEdgeCCWEdgeGap |
[is_max_edge_face_gap_init] | SmEdgeuse::IsMaxEdgeFaceGapInit |
[is_strut] | SmEdgeuse::IsStrut |
[vertexuse] | SmEdgeuse::GetVertexuse |
[faceuse], [face], [loopuse] | SmEdgeuse::GetFaceuse, GetFace, GetLoopuse |
[is_loop_edgeuse], [is_shell_edgeuse] | SmEdgeuse::IsLoopEdgeuse, IsShellEdgeuse |
[corner_mate_edgeuse] | SmEdgeuse::GetCornerMateEdgeuse |
[shell], [brep] | SmEdgeuse::GetShell, GetBrep |
[is_connected_to] | SmEdgeuse::IsConnectedTo |
[calc_dist_and_dev] | sm_CalcDistAndDev (static) |
[are_seam_curves] | sm_AreSeamCurves (static) |
[FindStepOff] | SmFindStepOffENFO (constructor, destructor, Evaluate) |
[mate], [radial] | SmEdgeuse::GetMate, GetRadial |
[set_uv_trim_curve], [UvTrimCurveArg] | SmEdgeuse::SetUVTrimCurve |
[delete_uv_trim_curve] | SmEdgeuse::DeleteUVTrimCurve |
[set_member_uv_trim_curve] | SmEdgeuse::SetMemberUVTrimCurve |
[max_edge_face_gap], [edge_ccw_edge_gap] | SmEdgeuse::GetMaxEdgeFaceGap, GetEdgeCCWEdgeGap |
[calc_max_edge_face_gap], [calc_edge_ccw_edge_gap] | SmEdgeuse::CalcMaxEdgeFaceGap, CalcEdgeCCWEdgeGap |
[tolerance] | SmEdgeuse::GetTolerance (SM_USE_OLDTOL) |
[uv_trim_curve], [drop_curve_fail] | SmEdgeuse::GetUVTrimCurve, GetDropCurveFail |
[uv_trim_curve_pointer] | SmEdgeuse::GetUVTrimCurvePointer |
[start_point_uv_loop_gap] | SmEdgeuse::GetStartPointUVLoopGap |
[faceuse_shell], [faceuse_region], [faceuse_face], [faceuse_mate], [faceuse_orientation] | SmFaceuse::GetShell, GetRegion, GetFace, GetMate, GetOrientation |
[faceuse_loopuses], [faceuse_edgeuses] | SmFaceuse::GetLoopuses, GetEdgeuses |
[faceuse_neighbors] | SmFaceuse::GetNeighbors |
[faceuse_collect_adjacent] | SmFaceuse::CollectAdjacentFaceuses |
[edgeuse_next], [edgeuse_last] | SmTopology::GetNext, GetLast of an edge use (CO-PORTED, topology.topology list links) |
[primary_edgeuse], [edge_is_lamina], [edge_brep] | SmEdge::GetPrimaryEdgeuse, IsLamina, GetBrep (CO-PORTED, topology.edge) |
[loopuse_edgeuses], [loopuse_shell] | SmLoopuse::GetEdgeuses, GetShell (unit topology.loopuse) |
[vertexuse_edgeuse] | SmVertexuse::GetEdgeuse (CO-PORTED, topology.vertexuse) |
[shell_region], [shell_brep] | SmShell::GetRegion, GetBrep (unit topology.shell) |
[owning_topology_is_kind_of] | SmOwningTopology::IsKindOf (unit topology.proto_topology_p1) |
Upstream tests reaching this unit
prog_test:my_test_extent3d, prog_test:my_test_vector2d, 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