intersect.curve_class_p2 green
- Layer
- 33
- Upstream lines
- 2,057
- Functions
- 14
- Rust module
intersect::curve_class::p2
Status history
- todo 1,928 lines
- partial 1,928 lines
- green 1,928 lines
Source: crates/solidcore/src/intersect/curve_class/p2.rs
Upstream: source/SMLib/src/SmCurveClass.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
PR #295 (stand-in vertex/edge/face objects as B-rep records, BareTopology, used when the case has no real one-face B-rep; merged with main 215f690e1 / #347): 1671 cases, 1627 pass, 0 fail, 44 deferred (topology.face_p2 44); main 1495/176; --perturb 1627/1627. Topology wired (branch wire/curve-class-topology-2): HasDeadTopologyPointObject resolves its objects through ClassGeometry::topology_entity and brep_p1::is_live_topology_member (it now takes the geometry; an object of another B-rep is dead), GetMinUV/GetMaxUV of a 3D curve drop to the face surface (topology_entity + face_p2::surface + SmSurface::DropPoint; they now take k); three in ten generated scripts carry the one-face B-rep of p7 after the curves on surfaces and classify to its topology (HasDeadTopologyPointObject also against that B-rep); difftest 1671 cases, 1495 passed, 0 failed, 176 deferred (bare stand-ins only; was 1462 / 209). Before: partial (PR #85, merged main 2026-10-18): difftest 1671 cases, 1462 pass, 0 fail, 209 deferred (topology.face_p2 120, topology.edge 36, topology.vertex 33, topology.brep_p1 20), max_rel_err 0, --perturb 1462/1462; new back-edges wired: heal.heal_data_p3 HasDeadTopologyPointObject (now takes Option<&Brep>), p8/p9 deferrals on p2 gone (p8 853->913 pass, p9 226->274 pass), query.face_p2 CurveOnClassify cases now compared (runner uses SmBSplineCurve::CreateLineSegment on both sides); MergeIntervals takes k + ClassGeometry, threaded through topology.face_p1 split_at_seam; SmSurface::CurveOnClassify wired to p8 IntersectNaturalBounds; surf_of_extrusion_p2 stub retagged UNPORTED(intersect.curve_class_p8) (not a Surface). Before: partial (PR #85, second review 2026-10-16): difftest 1671 cases (1500 generated + 2 usage + 7 edge + 34 adv + 128 review_extra), 1462 pass, 0 fail, 209 deferred (topology.face_p2 120, topology.edge 36, topology.vertex 33, topology.brep_p1 20), max_rel_err 0; --perturb 1462/1462 detected; UB-98 entry renumbered UB-158; UpdatePointClass uses point_class_mate_interval. Before: re-verified after merging main 2026-10-16: difftest 1543 cases (1500 generated + 2 usage + 7 edge + 34 adv), 1334 pass, 0 fail, 209 deferred (topology.face_p2 120, topology.edge 36, topology.vertex 33, topology.brep_p1 20: opaque handles, see findings), max_rel_err 0; --perturb SENSITIVE. Back-edges wired: UNPORTED(intersect.curve_class_p2) in intersect::curve_class::{p3,p5,p6}, query::face::p2 and heal::face_props (p3 2156->3163 pass / 1136->129 deferred; p5 275->1080 pass / 806->1 deferred; p6 3933->4216 pass / 505->222 deferred; query.face_p2 and heal.face_props unchanged, 0 fail). p5 edge branch of sm_InsertSolutions is now UNPORTED(topology.edge) SmEdge::GetCurve; p6 MergeInterval past GetPointObjZoneTol3d returns Unported naming p6 (its own unported remainder). Earlier: partial (PR #85): difftest 1543 cases (1500 generated + 2 usage + 7 edge + 34 adv), 1334 pass, 0 fail, 209 deferred (topology.face_p2 120, topology.edge 36, topology.vertex 33, topology.brep_p1 20), max_rel_err 0; --perturb 1334/1334 detected; review fix: operator= keeps the old curve when SmCurve::Copy fails (Hermite/Conic/Iso), --seeds 30000 0 failed; sm_RefineCCIToSurfaces ported up to its first topology call (UNPORTED(topology.edge) SmEdge::GetCurve; the rest of its body is to be ported when that site is wired); wired SmSurface::CurveOnClassify through ReSet (now UNPORTED(intersect.curve_class_p8)); UB-158 InsertAt(0) shift loop; 13 fns; largest: sm_RefineCCIToSurfaces, SmCurveClassification::ReSet, SmCurveClassification::EditIntervalMax, SmCurveClassification::EditIntervalMin; cycle back-edges (call into later units; stub or co-port): topology.edge(3), topology.face_p2(2), topology.brep_p1(1), topology.edgeuse_p1(1); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit. PR #597 (difftest-runner bare-face fallback for GetMinUV/GetMaxUV, no generator changes): difftest 1671 cases, 1671 pass, 0 fail, 0 deferred, max_rel_err 0, with_values 1671 (baseline 1654 pass / 17 deferred); the 17 former SmFace::GetSurface deferrals compare; p4 unchanged 2918 pass / 283 deferred. CI run 39937876770 at 75a82fd24: fmt, clippy, test, wasm, publish-dry-run, deny, difftest all pass. 2026-10-26 (PR #1159): sm_RefineCCIToSurfaces large-gap part ported (refine_cci_to_surfaces_mut over ClassGeometryMut: parts 2a surf/surf/surf, 2b/2c curve/surface, 2d RefinePoint on both pairs, recursion through lRecursionCount); the read-only adapter keeps a topology.brep_p1 dispatch gap there. Reached by topology.brep_p2 fixtures/topology.brep_p2/refine_cci.json (MergeSsi op, 11 cases, nurb_fillet.smb section curves: 2a on faces 6/7, 2d on face 4, 2b no-op on face 0). PASS intersect.curve_class_p2 cases=1671 passed=1671 deferred=0.
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
- 1,671
- 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: curve.curve_p2 green geom.extent1d green geom.object green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green intersect.curve_class_p1 green intersect.curve_class_p7 green intersect.point_class green surface.surface_p2 partial
Soft dependencies: curve.crv_on_surf green curve.curve_p3 partial geom.extent2d green intersect.surface_intersector_p1 green surface.surface_p3 green surface.surface_p5 green surface.surface_p6 green surface.surface_p7 green surface.surface_p8 green
Dependents: intersect.curve_class_p3 green intersect.curve_class_p4 green intersect.curve_class_p5 green intersect.curve_class_p6 green
Soft dependents: blend.fillet_solver_p5 green blend.hcr green heal.face_props green heal.heal_data_p3 green query.face_p2 green query.face_p3 green query.face_p4 green topology.brep_p2 green topology.face_p4 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
sm_RefineCCIToSurfaces | SmCurveClass.cpp:1714 | 1286 | [refine_cci_to_surfaces], [RefineCci] |
SmCurveClassification::operator= | SmCurveClass.cpp:5083 | 67 | [CurveClassification::assign_from] |
SmCurveClassification::GetPointObjZoneTol3d | SmCurveClass.cpp:5176 | 14 | [CurveClassification::point_obj_zone_tol_3d] |
SmCurveClassification::HasDeadTopologyPointObject | SmCurveClass.cpp:5203 | 25 | [CurveClassification::has_dead_topology_point_object] |
SmCurveClassification::GetClassifyCrvLoc | SmCurveClass.cpp:5234 | 21 | [CurveClassification::classify_crv_loc_by_index] |
SmCurveClassification::InsertAt | SmCurveClass.cpp:5398 | 44 | [CurveClassification::insert_at] |
SmCurveClassification::ReSet | SmCurveClass.cpp:5611 | 110 | [CurveClassification::reset], [ResetOptions] |
SmCurveClassification::ConnectIntervals | SmCurveClass.cpp:7153 | 74 | [CurveClassification::connect_intervals] |
SmCurveClassification::UpdatePointClass | SmCurveClass.cpp:8189 | 20 | [CurveClassification::update_point_class] |
SmCurveClassification::EditIntervalMin | SmCurveClass.cpp:8218 | 88 | [CurveClassification::edit_interval_min] |
SmCurveClassification::EditIntervalMax | SmCurveClass.cpp:8315 | 90 | [CurveClassification::edit_interval_max] |
sm_ClassifySeamEdgeuse | SmCurveClass.cpp:11411 | 129 | |
SmCurveInterval::GetMinUV | SmCurveClass.cpp:20482 | 44 | [CurveClassification::interval_min_uv] |
SmCurveInterval::GetMaxUV | SmCurveClass.cpp:20539 | 45 | [CurveClassification::interval_max_uv] |
Module file-header table (15 rows)
| Rust | Upstream |
|---|---|
[CurveClassification::assign_from] | SmCurveClassification::operator= |
[CurveClassification::point_obj_zone_tol_3d] | GetPointObjZoneTol3d |
[CurveClassification::has_dead_topology_point_object] | HasDeadTopologyPointObject |
[CurveClassification::classify_crv_loc_by_index] | GetClassifyCrvLoc(ULONG, double*) |
[CurveClassification::insert_at] | InsertAt |
[CurveClassification::reset], [ResetOptions] | ReSet |
[CurveClassification::connect_intervals] | ConnectIntervals |
[CurveClassification::update_point_class] | UpdatePointClass |
[CurveClassification::edit_interval_min] | EditIntervalMin |
[CurveClassification::edit_interval_max] | EditIntervalMax |
[CurveClassification::interval_min_uv] | SmCurveInterval::GetMinUV |
[CurveClassification::interval_max_uv] | SmCurveInterval::GetMaxUV |
[refine_cci_to_surfaces], [RefineCci] | sm_RefineCCIToSurfaces |
[refine_cci_to_surfaces_in] | sm_RefineCCIToSurfaces, through an adapter |
[refine_cci_to_surfaces_mut] | sm_RefineCCIToSurfaces (with its large-gap part) |
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