intersect.curve_class_p9 green
- Layer
- 37
- Upstream lines
- 1,220
- Functions
- 2
- Rust module
intersect::curve_class::p9
Status history
- todo 1,220 lines
- partial 1,220 lines
- green 1,220 lines
Source: crates/solidcore/src/intersect/curve_class/p9.rs
Upstream: source/SMLib/src/SmCurveClass.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
PR #1408 (2026-10-28): the primary GlobalCurveIntersect tree in IntersectEdges now uses the actual target edge zone tolerance, without geometry copies, earlier cache construction or public API changes; an absent override preserves any recorded curve-owner context. Added19 named real Hermite wire-target cases, retaining all438 prior inputs and generator draws. Before the fix17/18 passed: hermite_target_three_crossings_scale1e7_tight differed at deviation out[40] (CPP1.1641532182693481e-10, Rust5.820766091346741e-11). After:19/19 pass with values and zero relative error; full unit457 cases,455 value passes,2 existing rejections,0 failures/deferred; curve.curve_p8 3068/3068 pass with values, zero relative error; sensitivity19/19. Closed nonconstant Hermite targets are accepted and compared. Scope is the primary intersection tree: coincidence/range-combining/contact-drop caches and classification-source owner discovery are not changed or claimed complete. main CI e33985411 (2026-10-23): PASS intersect.curve_class_p9 cases=438 passed=436 failed=0 deferred=0 rejected=2. After intersect.curve_class_p2 (PR #85) merged and the fuzz fix (cache recipe UVs from ComputeUVPoint with the cache attached and the face point test off): 438 cases, 287 pass, 0 fail, 149 deferred (topology.edge 115, curve.crv_on_surf 24, intersect.curve_class_p2 10), 2 rejected. PARTIAL (PR #151; review rerun at numerical checkpoint df4756ac): 425 Linux differential cases (41 fixtures + 384 generated), 226 pass, 197 deferred (intersect.curve_class_p2 163, curve.crv_on_surf 24, intersect.curve_class_p4 10), 2 native setup rejections, zero failures, max_rel_err 0, no floors. FindUVNodes uses upstream FALSE pole default; collapsed/v-split caches and positive endpoint classification are covered. Required topology handles share ClassGeometry with landed part 5; both query back-edges call real p9 methods. Interior partition insertion and earlier query ReSet remain deferred; uncached edge-loop UV reaches topology.edgeuse_p3. Nonzero edge/face gap integration has a Rust threshold regression only. No open dependency PR is bundled. Final PR checks validate later ignored-UV-status and exact pole-predicate follow-ups. Op 1 state 2 (cache flagged modified) runs with the shim Brep in edit mode so the cache is used as given: with editing off SmCacheMgrTSrf rebuilds it first (cache units), which fails on a loopless face (fuzz regression). See plan/findings.md for coverage and seed handoff. 2 fns; largest: SmCurveClassification::IntersectTSBound, SmCurveClassification::IntersectEdges; cycle back-edges (call into later units; stub or co-port): topology.edge(5), topology.edgeuse_p1(4), topology.face_p2(3), topology.loopuse(2), topology.topology(2), topology.vertexuse(2), heal.gap(1), topology.edgeuse_p3(1), topology.vertex(1); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit UPDATE 2026-10-23 (branch claude/edge-handles): the runner's IntersectEdges target edges are real wire edges of a Rust B-rep built as the shim builds them (create_wire_edge_from_curve over the edge curve or the shared source line, edge::set_tolerance(zone, false, true)), resolved through ClassGeometry::topology_entity: PARTIAL intersect.curve_class_p9 cases=438 passed=435 failed=0 deferred=1 max_rel_err=0e0 with_values=435 no_values=0 vacuous=0 rejected=2 blocked_by=topology.edge(1) (was 115 topology.edge deferrals; the remaining one is a rectangle loop edge of trim_rectangle_crossing, which has no Rust B-rep face). UPDATE 2026-10-23 (PR #667): wire edges of the rectangle boundary loop are created in the runner's Brep and recorded in wire_edges, resolving the trim_rectangle_crossing deferral: PASS intersect.curve_class_p9 cases=438 passed=436 failed=0 deferred=0 max_rel_err=0e0 with_values=436 no_values=0 vacuous=0 rejected=2. GREEN.
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
- 457
- 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.crv_on_surf green geom.extent1d green geom.object green geom.solution_array green geom.tol green geom.vector3d green intersect.curve_class_p1 green intersect.curve_class_p3 green intersect.curve_class_p5 green intersect.point_class green surface.surface_p2 partial
Soft dependencies: curve.curve_cache green curve.curve_p2 green curve.curve_p6 green curve.curve_p8 green geom.a_object green geom.context green geom.extent2d green geom.tree green geom.vector2d green nurbs.b_spline_curve_p1 green surface.surface_cache_p1 green surface.surface_cache_p3 green surface.surface_p5 green
Dependents: none
Soft dependents: query.face_p2 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmCurveClassification::IntersectEdges | SmCurveClass.cpp:15425 | 523 | [CurveClassification::intersect_edges] |
SmCurveClassification::IntersectTSBound | SmCurveClass.cpp:15979 | 697 | [CurveClassification::intersect_ts_bound] |
Module file-header table (3 rows)
| Rust | Upstream |
|---|---|
[CurveClassification::intersect_edges] | SmCurveClassification::IntersectEdges |
[CurveClassification::intersect_edges_mut] | SmCurveClassification::IntersectEdges over a mutable adapter |
[CurveClassification::intersect_ts_bound] | SmCurveClassification::IntersectTSBound |
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