solidcore

Units / boolean

boolean.topology_intersector_p3 green

Layer
52
Upstream lines
1,849
Functions
3
Rust module
boolean::topology_intersector::p3

Status history

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

Source: crates/solidcore/src/boolean/topology_intersector/p3.rs

Upstream: source/SMLib/src/SmTopologyIntersector.cpp

Port-plan notes

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

GREEN (PR #802): Leased surface cache face binding in face_surface_trace_cache binds the face handle and topology tolerance, and clearing the owner on the evaluation target surface in merge_face_edges prevents spurious unported face point classification in drop_curve_base during DropAndTrimCurve; all 5 remaining topology.face_p2 deferrals compare: difftest 271 cases, 271 pass bit-identical (max_rel_err 0), 0 deferred, 0 failed, with_values 271. PR #729: the curve-on-classify objects (Objs) forward the pair's topology hooks, so the 24 SmVertex::GetTolerance deferrals compare: PARTIAL boolean.topology_intersector_p3 cases=271 passed=266 failed=0 deferred=5 blocked_by=topology.face_p2(5). PR #721 (2026-10-24): MergeCurveClasses merges through merge_classifications_mut (IntersectorBrepP3 requires MergeIntervalBrep; the runner's Two implements it), and the degenerate curve's MergeIntoObject through merge_into_object_mut: 271 cases, 242 pass, 0 failed, 29 deferred (topology.face_p2 15, topology.vertex 14); the 57 MergeInterval imprinting and 13 SmVertex::GetPoint deferrals pass. PARTIAL (PR #211): MergeCurveClasses, MergeCurveOnSurfaces and MergeCoincidentSurfaces ported in full. query.face_p1 and topology.face_p4 (partial) are wired: SmFace::Point3DClassify, CalculateBoundingBox (bTight FALSE), GetEdges and GetUpwardLoopuses are IntersectorBrepP3 hooks the adapter implements with query::face::p1 / topology::face::p4; dCurveTolerance reaches the point classifications as SmZoneTol3d (zone_tol3d). One stub, for a call into a unit still todo: topology.brep_p4 DeleteEdge (#441). On main (#146, #203, #85, #137, and the curve_class topology wiring #347 / #365 merged); CheckForSqueezeVertices combines coincident vertices (#274), so IntersectorBrepP3 extends IntersectorBrepP2 and the merges take &mut Kernel. ClassGeometry::topology_handle_in lets the two-B-rep adapter name handles in main's curve_class helpers. difftest (linux/arm64 container): 271 cases (256 generated + 15 inline), 166 passed with values, 0 failed, 105 deferred (intersect.curve_class_p6 57, topology.vertex 27, intersect.surface_drop_curve 15, topology.brep_p3 6); --perturb SENSITIVE 166/166; --fuzz 2000 FUZZ-PASS (0 differs). Review r1 (tangency-monitor): the shim and runner refuse an SM_PC_UNKNOWN start or end of a face- or region-mid interval (MergeInterval leaves it without object; SmCurveClass.cpp:17659/:17672 dereference it); MergeCurveOnSurfaces takes UV trim curves (K_TRIM_CURVE, 3 inline cases, deferring at intersect.point_class's SmVertex::GetTolerance stub in MergeIntoObject); MergeCoincidentSurfaces' 3D edge-curve copy gets the edge curve's owner as upstream. The runner reuses the p1 runner's two-B-rep adapter and reorders imported vertex-use lists to upstream's list order (see plan/findings.md). Back-edges: blend.fillet_geom_p4's MergeCurveOnSurfaces stub retagged blend.fillet_executive_p1 (it runs on the executive's intersector); boolean.merge_p1's MergeCoincidentSurfaces stays UNPORTED(boolean.topology_intersector_p3) pending an IntersectorBrepP3 implementation for merge p4's ArenaPair (follow-up). 3 fns; largest: SmTopologyIntersector::MergeCurveClasses, SmTopologyIntersector::MergeCoincidentSurfaces, SmTopologyIntersector::MergeCurveOnSurfaces; unit-SCC #22 (220 units); 110 upstream test entry points reach this unit UPDATE (PR #679, UpdateVertexEdgeIntervals wired in CombineCoincidentVertices): the runner numbers every post-merge handle and the state by a re-walk of both B-reps (boolean.merge_p1 Canon::reachable, the shim's walk_all), so records a squeeze deleted (unlinked, kept in the Rust arena) are unknown on both sides, as upstream. 271 cases, 172 pass, 0 failed, 99 deferred; the 6 UpdateVertexEdgeIntervals deferrals pass. UPDATE (owning-face caches in MergeCoincidentSurfaces' DropAndTrimCurve): the trace runs on the target face's trimmed cache (IntersectorBrepP3::face_surface_trace_cache, the runner's face_surface_cache); 10 of the 15 topology.face_p2 cases move on to topology.vertex: PARTIAL boolean.topology_intersector_p3 cases=271 passed=242 failed=0 deferred=29 blocked_by=topology.face_p2(5),topology.vertex(24).

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
271
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: boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green curve.curve_p2 green geom.extent3d green geom.tol green intersect.curve_class_p1 green intersect.point_class green topology.edge green topology.edgeuse_p1 green topology.face_p2 partial

Soft dependencies: curve.curve_p4 green curve.curve_p6 green geom.extent1d green geom.object green geom.vector3d green intersect.curve_class_p3 green intersect.curve_class_p4 green intersect.curve_class_p5 green intersect.curve_class_p6 green intersect.curve_class_p7 green intersect.surface_drop_lib_p1 partial nurbs.b_spline_curve_p1 green query.face_p1 green query.face_p2 green surface.surface_p1 green surface.surface_p2 partial topology.brep_p4 green topology.face_p4 green topology.loopuse green

Dependents: none

Soft dependents: blend.fillet_corner_p1 green blend.fillet_geom_p4 partial boolean.merge_p1 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmTopologyIntersector::MergeCurveClassesSmTopologyIntersector.cpp:3001889[TopologyIntersector::merge_curve_classes]
SmTopologyIntersector::MergeCurveOnSurfacesSmTopologyIntersector.cpp:3915415[TopologyIntersector::merge_curve_on_surfaces]
SmTopologyIntersector::MergeCoincidentSurfacesSmTopologyIntersector.cpp:4347545[TopologyIntersector::merge_coincident_surfaces]
Module file-header table (8 rows)
RustUpstream
[TopologyIntersector::merge_curve_classes]MergeCurveClasses
[CurveClassesMerge]its out-params
[TopologyIntersector::merge_curve_on_surfaces]MergeCurveOnSurfaces
[CurveOnSurfaces]its in-params
[CurveOnSurfacesMerge]its out-params
[TopologyIntersector::merge_coincident_surfaces]MergeCoincidentSurfaces
[CoincidentSurfacesMerge]its out-params
[IntersectorBrepP3]the SmSurface, SmEdge, SmLoopuse, SmEdgeuse and SmFaceuse walks these use

Upstream tests reaching this unit

prog_test:my_test_bbu, SM_API_test:TestSmSurfaceSurfaceFillet, SM_API_test:TestSmMaterialCensus, SM_API_test:TestSmPiecewiseMerge, SM_API_test:TestSmBooleanLists, SM_API_test:TestKernelMergeBrepsInvalidInput