intersect.curve_class_p3 green
- Layer
- 34
- Upstream lines
- 1,986
- Functions
- 9
- Rust module
intersect::curve_class::p3
Status history
- todo 1,986 lines
- partial 1,986 lines
- green 1,986 lines
Source: crates/solidcore/src/intersect/curve_class/p3.rs
Upstream: source/SMLib/src/SmCurveClass.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
2026-10-24 (claude/vertex-point, Mac): InsertPointClass runs through insert_point_class_mut on the runner pool (MergeIntervalBrep over the one-face B-rep and the bare records), so Combine moves the vertex (SmVertex::SetPoint); both sides report every vertex object point after each insert. PASS intersect.curve_class_p3 cases=3708 passed=3708 failed=0 deferred=0 max_rel_err=0e0 with_values=3708 no_values=0 vacuous=0. PR #296 (stand-in vertex/edge/face objects as B-rep records, BareTopology, used when the script has no real one-face B-rep; on main 5c3adfbee): 3708 cases, 3700 pass, 0 fail, 8 deferred (topology.vertex 8: SmVertex::SetPoint in MergeIntoObject); main 3617/91. Before: Topology members wired (branch wire/curve-class-topology-2): difftest 3708 cases (3292 + 416 face_* fixtures), 3617 passed, 0 failed, 91 deferred (topology.vertex 39, topology.face_p2 29, topology.edge 23: bare stand-ins only); SmEdge::GetVertex/GetOtherVertex, GetInterval, GetCurve and SmVertex::GetPoint resolve through ClassGeometry::topology_entity/topology_handle (p7 edge_of/vertex_of); a third of the generated scripts and the face_* fixtures carry a one-face B-rep (as p7) so InsertPointClass vertex/edge merges, sm_ChangeEdgePointClassToNearVertex (40 fixtures snap to a vertex) and CleanupAndValidate over edge intervals are compared; the shim still refuses those walks over stand-in edges. Before: After intersect.curve_class_p2 (PR #85) wired InsertAt/EditIntervalMin/EditIntervalMax/ConnectIntervals/GetClassifyCrvLoc: 3292 cases, 3163 pass, 0 failed, 129 deferred (topology.vertex 45, topology.face_p2 49, topology.edge 35). PARTIAL (PR #123): difftest 3292 cases (292 hand-written edge scripts over curve kinds, tolerance limits and per-op boundaries + 3000 generated scripts), 2156 pass bit-identical (max_rel_err 0), 0 failed, 1136 deferred (intersect.curve_class_p2 1022; topology.vertex 41 / topology.edge 32 / topology.face_p2 41: the zone tolerance lookups SmVertex/SmEdge/SmFace::GetTolerance of opaque handles) after intersect.curve_class_p7 (PR #65) wired GetPointClassByIndex, GetPointClassMateByIndex and AreCoincidentMaybe; --perturb SENSITIVE. Stubs: UNPORTED(intersect.curve_class_p2) (PR #85) is the maintainer's open PR, not merged here; UNPORTED(topology.edge)/UNPORTED(topology.vertex) stay because the opaque handle O cannot reach a Brep (see plan/findings.md). sm_FixProblemsBySqueezing tail recursion is a restart loop with the same visit order, bounded by interval count + 1 (header Deviations). Upstream defects UB-109, UB-110 (plan/upstream-issues.md). 9 fns; largest: SmCurveClassification::InsertPointClass, SmCurveClassification::FindInterval, SmCurveClassification::MergePointClass, sm_ChangeEdgePointClassToNearVertex; cycle back-edges (call into later units; stub or co-port): topology.edge(8), topology.vertex(2); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit
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
- 3,708
- 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.tol green geom.vector3d green intersect.curve_class_p1 green intersect.curve_class_p2 green intersect.curve_class_p7 green intersect.point_class green
Soft dependencies: curve.curve_p6 green geom.geom_utility_p1 green
Dependents: blend.feature_executive blocked intersect.curve_class_p5 green intersect.curve_class_p6 green intersect.curve_class_p8 green intersect.curve_class_p9 green
Soft dependents: blend.fillet_solver_p1 green blend.hcr green boolean.topology_intersector_p3 green topology.face_p3 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
sm_ChangeEdgePointClassToNearVertex | SmCurveClass.cpp:3358 | 244 | [change_edge_point_class_to_near_vertex] |
sm_FixProblemsBySqueezing | SmCurveClass.cpp:3628 | 140 | [fix_problems_by_squeezing] |
SmCurveClassification::FindInterval | SmCurveClass.cpp:5870 | 292 | [CurveClassification::find_interval], [FoundInterval] |
SmCurveClassification::FindPointClass | SmCurveClass.cpp:6176 | 37 | [CurveClassification::find_point_class] |
SmCurveClassification::IsCoincident | SmCurveClass.cpp:7051 | 53 | [CurveClassification::is_coincident] |
SmCurveClassification::InsertPointClass | SmCurveClass.cpp:7329 | 747 | [CurveClassification::insert_point_class], [CurveClassification::insert_point_class_mut] |
SmCurveClassification::RemovePointClass | SmCurveClass.cpp:8085 | 97 | [CurveClassification::remove_point_class] |
SmCurveClassification::CleanupAndValidate | SmCurveClass.cpp:14101 | 128 | [CurveClassification::cleanup_and_validate] |
SmCurveClassification::MergePointClass | SmCurveClass.cpp:18464 | 248 | [CurveClassification::merge_point_class] |
Module file-header table (12 rows)
| Rust | Upstream |
|---|---|
[CurveClassification::find_interval], [FoundInterval] | SmCurveClassification::FindInterval |
[CurveClassification::find_point_class] | SmCurveClassification::FindPointClass |
[CurveClassification::is_coincident] | SmCurveClassification::IsCoincident |
[CurveClassification::insert_point_class], [CurveClassification::insert_point_class_mut] | SmCurveClassification::InsertPointClass |
[CurveClassification::remove_point_class] | SmCurveClassification::RemovePointClass |
[CurveClassification::merge_point_class] | SmCurveClassification::MergePointClass |
[CurveClassification::cleanup_and_validate] | SmCurveClassification::CleanupAndValidate |
[change_edge_point_class_to_near_vertex] | sm_ChangeEdgePointClassToNearVertex (static) |
[fix_problems_by_squeezing] | sm_FixProblemsBySqueezing (static) |
[CurveClassification::classify_edge_interval] | fork SmCurveClassification::ClassifyEdgeInterval (WR-305; both straight or curved pieces certified, not a midpoint sample) |
[CurveClassification::set_edge_interval], [EdgeToleranceRaise] | not upstream (#18065): an interval on its edge once the edge's tolerance is raised to its certified distance |
circle_arcs_within, radial_deviation, coordinate_resolution (private) | not upstream (#18065): two coplanar circles' NURB arcs within the band in closed form, allowing the coordinates' rounding only |
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