intersect.curve_class_p5 green
- Layer
- 36
- Upstream lines
- 3,546
- Functions
- 8
- Rust module
intersect::curve_class::p5
Status history
- todo 2,017 lines
- partial 2,017 lines
- green 2,017 lines
Source: crates/solidcore/src/intersect/curve_class/p5.rs
Upstream: source/SMLib/src/SmCurveClass.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
GREEN (PR #610): 1411 native cases (311 fixed: 281 flat + 30 B-rep; 800 flat + 300 B-rep generated) pass bit-identically, 0 fail, 0 defer; --perturb SENSITIVE 1411/1411, no absolute floors. B-rep cases (runner module topo, shim intersect_curve_class_p5_topo.cpp) run sm_InsertSolutions against real edges and IntersectVertices against real vertices of unit topology.edgeuse_p1's B-reps, with the classification curve and both B-reps owned by a ClassGeometryMut adapter: edge-end vertex snaps (with SmVertex::SetTolerance raising the vertex to the edge's when GetOKToSetTolerance), edge point/range classes, tangency filtering, the sm_RefineCCIToSurfaces no-work gate with classification surfaces, and the whole GWC:CHANGED_SSS block (SnapToKnots cull, surface projections with and without UV guesses, sm_SetXSectCurveThroughPoint editing a piecewise C0 cubic, SetIsCurveCurrent(FALSE), UV trim curves deleted on the vertex's edges and on their SmTopologyIntersector mates). insert_solutions_mut / intersect_vertices_mut make these edits; the read-only insert_solutions / intersect_vertices (callers p8, p9, query.face_p2) defer where an edit is due with UNPORTED(topology.brep_p1) (SmBrep mutable owning context, as point_class's merge). IntersectVertices projects onto an owner-free copy of the face surface (upstream clears its owner). Not reached by any case: the cull's removal of a duplicate drop point (two drop points snapping to the same knot) and the large-gap vertex insertion (the curve point solve returns no drop point beyond XSectTol3d in any case; the large-gap tolerance with real vertex/face gaps is compared). See plan/findings.md (PR #610) for the C++ vertex tolerance side effect the B-rep generator avoids. Small shared interfaces are CO-PORTED in point_class, curve_class_p1 and query.face_p2 notes. Deviations: object_index >1 rejected; unresolved p5_closed curve errors instead of FALSE; runner face zone tolerance zero is not compared; missing vertex/gap callback data returns InvalidInput; an ownerless no-face large-gap cutoff keeps the system default (UB-126). UB-134 was assigned to PR #150 by the maintainer. Rust adapter extended in heal.heal_data_p3 (PR #164): merge_intervals_with_partial retains completed intervals' output on failure for native ignored-status callers. 7 owned functions; largest: sm_InsertSolutions, SmCurveClassification::IntersectVertices, SmCurveClassification::MergeClassifications, SmCurveClassification::ExtractGeometry; cycle back-edges: topology.edge(6), topology.vertex(5), boolean.topology_intersector_p1(2), heal.gap(1), topology.edgeuse_p1(1), topology.vertexuse(1); 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
- 1,411
- 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_p2 green intersect.curve_class_p3 green intersect.curve_class_p6 green intersect.curve_class_p7 green intersect.point_class green surface.surface_p2 partial
Soft dependencies: curve.crv_on_surf green curve.curve_p1 green curve.curve_p4 green nurbs.b_spline_curve_n_lib green nurbs.b_spline_curve_p1 green nurbs.b_spline_surface_p1 green surface.surface_p4 green surface.surface_p5 green
Dependents: intersect.curve_class_p8 green intersect.curve_class_p9 green
Soft dependents: boolean.topology_intersector_p1 green boolean.topology_intersector_p3 green heal.heal_data_p3 green query.face_p2 green topology.brep_p2 green topology.brep_p7 green topology.face_p1 green topology.face_p3 green topology.proto_topology_p3 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
sm_InsertSolutions | SmCurveClass.cpp:4217 | 634 | [insert_solutions], [insert_solutions_mut] |
SmCurveClassification::GetLoopTouches | SmCurveClass.cpp:11552 | 1529 | |
SmCurveClassification::ExtractGeometry | SmCurveClass.cpp:13620 | 167 | [CurveClassification::extract_geometry], [CurveClassification::extract_geometry_mut] |
SmCurveClassification::FixupClassification | SmCurveClass.cpp:14251 | 97 | [CurveClassification::fixup_classification] |
SmCurveClassification::InsertTopologyIntersections | SmCurveClass.cpp:14628 | 129 | [CurveClassification::insert_topology_intersections] |
SmCurveClassification::IntersectVertices | SmCurveClass.cpp:14798 | 607 | [CurveClassification::intersect_vertices], [CurveClassification::intersect_vertices_mut] |
SmCurveClassification::MergeClassifications | SmCurveClass.cpp:16685 | 261 | [CurveClassification::merge_classifications] |
SmCurveClassification::MergeIntervals | SmCurveClass.cpp:18733 | 122 | [CurveClassification::merge_intervals] |
Module file-header table (8 rows)
| Rust | Upstream |
|---|---|
[insert_solutions], [insert_solutions_mut] | sm_InsertSolutions (static) |
[CurveClassification::extract_geometry], [CurveClassification::extract_geometry_mut] | SmCurveClassification::ExtractGeometry |
[CurveClassification::fixup_classification] | SmCurveClassification::FixupClassification |
[CurveClassification::insert_topology_intersections] | SmCurveClassification::InsertTopologyIntersections |
[CurveClassification::intersect_vertices], [CurveClassification::intersect_vertices_mut] | SmCurveClassification::IntersectVertices |
[CurveClassification::merge_classifications] | SmCurveClassification::MergeClassifications |
[CurveClassification::merge_intervals] | SmCurveClassification::MergeIntervals |
[ClassGeometryMut] | the non-const objects behind m_cpCurve, SmVertex*, SmEdgeuse* |
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