intersect.topology_solver_p2 green
- Layer
- 35
- Upstream lines
- 1,391
- Functions
- 15
- Rust module
intersect::topology_solver::p2
Status history
- todo 1,391 lines
- partial 1,391 lines
- green 1,391 lines
Source: crates/solidcore/src/intersect/topology_solver/p2.rs
Upstream: source/SMLib/inc/SmTopologySolver.h, source/SMLib/src/SmTopologySolver.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
2026-10-25 (wire: SolveOperands natural domains on global solvers, face_silhouettes surface_solve_context, and StaticScene trimmed face caches): PASS intersect.topology_solver_p2 cases=2429 passed=2429 failed=0 deferred=0 max_rel_err=0e0 with_values=2429 no_values=0 vacuous=0 (--perturb SENSITIVE 2429/2429). 2026-10-24 (SmTLSCurveFace range solutions run SmFace::CurveOnClassify on the face TopologyObjects::face_entity names; endpoint refinement solves with the point test off): PARTIAL intersect.topology_solver_p2 cases=2429 passed=2415 failed=0 deferred=14 blocked_by=surface.surface_p2(12),topology.face_p2(2) (was 2411 / 18; the 4 query.face_p2 CurveOnClassify deferrals pass). main CI e33985411 (2026-10-23): PARTIAL intersect.topology_solver_p2 cases=2429 passed=2401 failed=0 deferred=28 blocked_by=query.face_p2(8),surface.surface_p2(12),topology.face_p2(8). 15 fns; largest: SmTLSCurveFace::SolveIt, SmTopologySolver::BrepCurveSolve, SmTLSFaceFace::SolveIt, SmTopologySolver::ShapeCurveSolve; cycle back-edges (call into later units; stub or co-port): topology.brep_cache(9), topology.edge(5), topology.face_p2(4), query.face_p2(2), topology.vertex(2); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; PARTIAL: 2429 cases, 2384 bit-identical, 0 failed, 45 deferred (surface.surface_p11 20, surface.surface_p4 8, surface.surface_p6 8, surface.surface_p8 4, topology.brep_p1 2, topology.edge 3); max_rel_err=0; no absolute floors; all 15 owned functions have Rust bodies (shared local constructors reuse p1); 600 generated traversal cases, 2 traversal fixtures, 180 CurveVertex fixtures and 1647 static/face/operation/request/tolerance/scale/subdivision fixtures; native setup, point-node storage and invalid-cast class probes are separate tests; face bodies still reach explicit surface/query callees, nonempty Shape construction is not covered; --perturb SENSITIVE 2384/2384; full validation with current official main: 142 units, 89 green, 53 partial, 0 failed; fmt, strict plain/CPP Clippy, workspace/native tests, wasm and license/source checks pass [surface.surface_p6 wired (PR #92): 2429 cases, 2384 pass, 45 deferred (intersect.surface_silhouette 8, surface.surface_p11 20, surface.surface_p4 8, surface.surface_p8 4, topology.brep_p1 2, topology.edge 3)] surface.surface_p11 (PR #120, after merging main with surface.surface_p3): cases=2429 passed=2396 failed=0 deferred=33 (curve.iso_curve 12, intersect.surface_tracer 8 (SmSurfaceTracer::DoTrace, inherited by SmSurfaceSilhouette; the stub in Surface::create_silhouette_curves is tagged with its owner), surface.surface_p8 6, topology.brep_p1 4, topology.edge 3); the runner maps face/surface solution objects to -2 as the shim does (first reached now that face/face normalize solves run); --perturb SENSITIVE. Re-run (PR #118, after surface.surface_p8 was wired): 2429 cases, 2396 pass, 33 deferred (curve.iso_curve 12, intersect.curve_class_p4 4, intersect.surface_tracer 8, topology.brep_p1 6, topology.edge 3), 0 failed; --perturb SENSITIVE 2396/2396; the 2 surface.surface_p8 deferrals are gone. UPDATE after topology.brep_p1 (PR #145): re-run 2429 cases, 2396 pass, 0 fail, 33 deferred (curve.iso_curve 12, intersect.surface_tracer 8, intersect.curve_class_p4 4, intersect.topology_solver_p1 4, topology.edge 3, geom.solution_array 2; the former topology.brep_p1 deferrals are the self-tagged SmTol::GetZoneTol3d(SmObject*) stubs). Re-run (PR #137, classified_curve_intervals passes zone_tol3d(tol) as upstream's SmZoneTol3d conversion): 2429 cases, 2396 pass, 33 deferred (curve.iso_curve 12, intersect.curve_class_p2 4, intersect.surface_tracer 8, topology.brep_p1 6, topology.edge 3), 0 failed; --perturb SENSITIVE 2396/2396. UPDATE 2026-10-23 (branch claude/edge-handles): the 3 topology.edge deferrals (SmEdge::GetInterval in IdenticalSolutions) now pass through the TopologySolver ParameterDomains resolver: PARTIAL intersect.topology_solver_p2 cases=2429 passed=2401 failed=0 deferred=28 max_rel_err=0e0 with_values=2401 no_values=0 vacuous=0 blocked_by=query.face_p2(8),surface.surface_p2(12),topology.face_p2(8). PR #599 (2026-10-23): StaticScene::object_zone_tol_3d resolves the shim's handles, so the 2 geom.tol GetZoneTol3d deferrals pass. The 12 GetNaturalUVDomain deferrals are kept on purpose: answering them makes 9 face solves disagree (C++ solves over the face-owned trimmed surface cache, Rust over a fresh plain cache; plan/findings.md). 2026-10-24: sm_GetFaceSilhouettes calls the ported SmFace::CreateCurvesByTrimming through TopologyObjects::face_entity, and the static adapter resolves its CreateFaceFromSurface faces: PARTIAL intersect.topology_solver_p2 cases=2429 passed=2411 failed=0 deferred=18 blocked_by=query.face_p2(4),surface.surface_p2(12),topology.face_p2(2); the 2 topology.face_p2 cases are vertex/face maximize over the face-owned plane (same trimmed-cache class, plan/findings.md). UPDATE (difftest: analytic faces): fixtures/intersect.topology_solver_p2/static-analytic-faces.json runs the static face entries (VertexFace, CurveFace, EdgeFace, FaceFace) on faces of real SmCylinder / SmCone / SmSphere / SmTorus surfaces over their natural domains (built as --ssi-corpus builds them; shim entry sc_intersect_topology_solver_p2_static_faces, each C++ case in a fresh process), with projected, directed, rayfire and minimize operations: the first cases comparing sm_GetFaceSilhouettes (intersect.topology_solver_p1; its SM_CAST_PTR(SmBSplineSurface) accepts every analytic kind since #1612) and the face solves on analytic faces against C++. Counts: see the PR's difftest summary.
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
- 2,575
- Stored error outcomes
- 2
- 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.global_solver green geom.object green geom.solution_array green geom.tol green geom.tree green geom.vector3d green intersect.curve_class_p1 green intersect.topology_solver_p1 green
Soft dependencies: curve.curve_p6 green geom.a_object green geom.extent3d green geom.vector2d green intersect.curve_class_p4 green intersect.point_class green surface.surface_p1 green surface.surface_p2 partial surface.surface_p4 green surface.surface_p7 green surface.surface_p8 green
Dependents: query.api_queries green
Soft dependents: boolean.topology_intersector_p1 green offset.offset_executive_p1 partial query.brep green topology.brep_p10 green topology.brep_p2 green topology.brep_p3 partial topology.shell green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmTLSVertexEdge::SmTLSVertexEdge | SmTopologySolver.h:233 | 8 | [LocalSolver::new] (shared in p1) |
SmTLSEdgeEdge::SmTLSEdgeEdge | SmTopologySolver.h:478 | 8 | [LocalSolver::new] (shared in p1) |
SmTLSVertexFace::SolveIt | SmTopologySolver.cpp:944 | 25 | LocalSolver::solve_vertex_face |
SmTLSCurveVertex::SolveIt | SmTopologySolver.cpp:975 | 25 | LocalSolver::solve_curve_vertex |
SmTLSEdgeVertex::SolveIt | SmTopologySolver.cpp:1007 | 53 | LocalSolver::solve_edge_vertex |
SmTLSCurveFace::SolveIt | SmTopologySolver.cpp:1412 | 384 | LocalSolver::solve_curve_face |
SmTLSEdgeFace::SolveIt | SmTopologySolver.cpp:1803 | 49 | LocalSolver::solve_edge_face |
SmTLSFaceFace::SolveIt | SmTopologySolver.cpp:1859 | 147 | LocalSolver::solve_face_face |
SmTopologySolver::BrepPointSolve | SmTopologySolver.cpp:2046 | 104 | [TopologySolver::brep_point_solve] |
SmTopologySolver::ShapePointSolve | SmTopologySolver.cpp:2181 | 90 | [TopologySolver::shape_point_solve] |
SmTopologySolver::BrepCurveSolve | SmTopologySolver.cpp:2296 | 173 | [TopologySolver::brep_curve_solve] |
SmTopologySolver::ShapeCurveSolve | SmTopologySolver.cpp:2485 | 117 | [TopologySolver::shape_curve_solve] |
SmTopologySolver::LocalSolve | SmTopologySolver.cpp:3024 | 73 | [TopologySolver::local_solve_branch] |
sm_SolveTwoTrees | SmTopologySolver.cpp:3197 | 65 | [TopologySolver::solve_two_tree_sets] |
SmTopologySolver::BrepBrepSolve | SmTopologySolver.cpp:3271 | 70 | [TopologySolver::brep_brep_solve] |
Module file-header table (15 rows)
| Rust | Upstream |
|---|---|
[LocalSolver::new] (shared in p1) | SmTLSVertexEdge / SmTLSEdgeEdge constructors |
[TopologySolver::local_solve_branch] | SmTopologySolver::LocalSolve |
LocalSolver::solve_vertex_face | SmTLSVertexFace::SolveIt |
LocalSolver::solve_curve_vertex | SmTLSCurveVertex::SolveIt |
LocalSolver::solve_edge_vertex | SmTLSEdgeVertex::SolveIt |
LocalSolver::solve_curve_face | SmTLSCurveFace::SolveIt |
LocalSolver::solve_edge_face | SmTLSEdgeFace::SolveIt |
LocalSolver::solve_face_face | SmTLSFaceFace::SolveIt |
[TopologySolver::brep_point_solve] | SmTopologySolver::BrepPointSolve |
[TopologySolver::shape_point_solve] | SmTopologySolver::ShapePointSolve |
[TopologySolver::brep_curve_solve] | SmTopologySolver::BrepCurveSolve |
[TopologySolver::shape_curve_solve] | SmTopologySolver::ShapeCurveSolve |
[TopologySolver::shape_shape_solve] | not upstream: selected shapes through the B-rep pair comparisons |
[TopologySolver::solve_two_tree_sets] | sm_SolveTwoTrees |
[TopologySolver::brep_brep_solve] | SmTopologySolver::BrepBrepSolve |
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