solidcore

Units / intersect

intersect.curve_class_p6 green

Layer
35
Upstream lines
2,213
Functions
4
Rust module
intersect::curve_class::p6

Status history

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

Source: crates/solidcore/src/intersect/curve_class/p6.rs

Upstream: source/SMLib/src/SmCurveClass.cpp

Port-plan notes

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

2026-10-25 (codex, paired fillet geometry): 4470 native cases pass, 0 failed/deferred, max_rel_err=0; 4464 compare values and 6 existing cases compare statuses. Four actual two-box paired MergeClassifications fixtures cover legacy peer metadata, call-scoped linked peers without metadata, legacy missing-peer no-op and DoingFillets=false. Original 87-value case retained byte-for-byte; three new cases compare 91 values each including actual restored peer presence/flags. Perturb 4/4 caught; omitted peer forwarding restores GetOtherClassification deferral and fails the green gate. 2026-10-24 (claude/vertex-point, Mac): InsertCurveInterval runs through insert_curve_interval_mut (Combine moves the vertex, SmVertex::SetPoint, through MergeIntervalBrep); op 0 now also reports the picked vertex point on both sides. PASS intersect.curve_class_p6 cases=4466 passed=4466 failed=0 deferred=0 max_rel_err=0e0 with_values=4460 no_values=6 vacuous=0. MergeInterval imprinting ported (PR #721, 2026-10-24): the tail after GetPointObjZoneTol3d (unknown-end repair, closed/degenerate branch, wire edge, edge in face with face split, coincident edge) edits the B-rep through MergeIntervalBrep (merge_interval_mut, merge_point_class_mut; the read-only entry points defer at the first edit). Runner: a fresh box copy per case, the box compared after a merge, 28 imprint_* cases (picked box objects, lines on the box, editing enabled). 4466 cases, 4446 pass, 0 failed, 20 deferred (topology.vertex 20: SetPoint in InsertCurveInterval's combine, not MergeInterval). PR #599 (2026-10-23): the runner passes the partner classification (the one the shim's SetFilletData names) to merge_interval_with, so the 10 intersect.curve_class_p7 GetOtherClassification deferrals pass with values (142 each): 4438 cases, 4326 pass, 0 failed, 112 deferred (intersect.curve_class_p6 92 MergeInterval imprinting, topology.vertex 20 SetPoint). PR #296 (runner imports the shim's SmApiCreateBox B-rep via heal.stitch_p1 export): 4438 cases, 4316 pass, 0 fail, 122 deferred (intersect.curve_class_p6 92 MergeInterval imprinting, topology.vertex 20 SetPoint, intersect.curve_class_p7 10), --perturb 4316/4316. After intersect.curve_class_p2 (PR #85) wired GetPointObjZoneTol3d into MergeInterval (now takes k and geometry): 4438 cases, 4216 pass, 0 failed, 222 deferred (topology.edge 80, topology.face_p2 60, intersect.curve_class_p6 52 = MergeInterval imprinting not ported in this unit, topology.vertex 20, intersect.curve_class_p7 10). PR #138: partial; 4438 cases, 3933 passes (3927 bit-identical kernel comparisons and 6 expected FFI rejection checks), 0 failures, 505 deferred, no absolute floors. InsertCurveInterval, Homogenize and FixEndPointClass preserve upstream control flow with p2/p4/p7 dependency calls; MergeInterval implements early exits only and defers topology mutation at p2 GetPointObjZoneTol3d. Native fixtures use real 3D lines, circles, ellipses, quadratic and constant B-splines plus box topology. Nonempty homogenization/endpoint repair and topology mutation are not certified; generic topology tolerance lookups also retain existing adapter deferrals. Native regression tests run locally: 27440 isolated operation/geometry/flag/classification probes, 96 partition/SSS/boundary probes, 660 mismatched fillet-partner probes checking Rust and raw C++ guards independently, caller-point and projection regressions; project CI unchanged. Audit reuses p1 types and p3 helpers; p2/p4/p7 remain explicit dependencies, with no duplicate co-ports. Maintainer review: require homogenized partner counts for fillet merges (UB-136); reuse p3 boundary-location helper; ignore ordinary squeeze errors while retaining the no-progress guard (HANG-14). 4 fns; largest: SmCurveClassification::MergeInterval, SmCurveClassification::InsertCurveInterval, SmCurveClassification::Homogenize, SmCurveClassification::FixEndPointClass; cycle back-edges (call into later units; stub or co-port): topology.edge(5), topology.vertex(5), topology.face_p4(2), topology.brep_p3(1), topology.brep_p5(1), topology.brep_p9(1), topology.edgeuse_p1(1), topology.face_p2(1), topology.vertexuse(1); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit Merge of PR #65: AreCoincidentMaybe wired to p7; difftest now 4438 cases, 4097 passed, 0 failed, 341 deferred.. REVIEW FLAG (PR #85 review, 2026-10-16): this unit is partial while 52 deferred cases are its own unported MergeInterval imprinting (no UNPORTED marker, not a back-edge); finish that remainder (see findings intersect.curve_class_p2). fix/cc-topology-handles (2026-10-22): MergeInterval's vertex/edge/vertex fillet branch now calls p7 sm_SetDoFilletingGeometry (todo 7, status ignored) through merge_interval_with(.., other); merge_interval (no partner) keeps a GetOtherClassification deferral (intersect.curve_class_p7). The imprinting tail (SmCurveClass.cpp 17212-18276: end points, closed/degenerate test, MergePointClass vertex/edge imprinting, face splits) still defers: it needs a mutable B-rep context that ClassGeometry (shared ref) cannot give, the same gap as point_class merge_into_object vs merge_into_brep. fix/cc-topology-handles iter 2: the MergeInterval imprinting tail (SmCurveClass.cpp:17212-18276, ~1060 lines: MergePointClass, face split, edge imprint) needs a mutable classification context (ClassGeometry gives only &Brep); merge_into_brep is the mutable model for one point. Next porter: add a mutable adapter (topology_entity_mut) and thread it through merge_interval and its callers (boolean.topology_intersector_p3).

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,470
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.tol green geom.vector3d green intersect.curve_class_p1 green intersect.curve_class_p2 green intersect.curve_class_p3 green intersect.curve_class_p4 green intersect.curve_class_p7 green intersect.point_class green

Soft dependencies: curve.crv_on_surf green curve.curve_p6 green nurbs.b_spline_curve_n_lib green

Dependents: intersect.curve_class_p5 green

Soft dependents: boolean.topology_intersector_p1 green boolean.topology_intersector_p3 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmCurveClassification::HomogenizeSmCurveClass.cpp:6285328[CurveClassification::homogenize], [CurveClassification::homogenize_mut]
SmCurveClassification::InsertCurveIntervalSmCurveClass.cpp:10511577[CurveClassification::insert_curve_interval], [CurveClassification::insert_curve_interval_mut]
SmCurveClassification::FixEndPointClassSmCurveClass.cpp:14373243[CurveClassification::fix_end_point_class]
SmCurveClassification::MergeIntervalSmCurveClass.cpp:173671065[CurveClassification::merge_interval], [CurveClassification::merge_interval_mut]
Module file-header table (5 rows)
RustUpstream
[CurveClassification::homogenize], [CurveClassification::homogenize_mut]SmCurveClassification::Homogenize
[CurveClassification::insert_curve_interval], [CurveClassification::insert_curve_interval_mut]SmCurveClassification::InsertCurveInterval
[CurveClassification::fix_end_point_class]SmCurveClassification::FixEndPointClass
[CurveClassification::merge_interval], [CurveClassification::merge_interval_mut]SmCurveClassification::MergeInterval
[MergeIntervalBrep], [MergeContext]the non-const SmVertex, SmEdge, SmFace, SmRegion and SmBrep objects behind the classification's pointers

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