solidcore

Units / geom

geom.tools green

Layer
5
Upstream lines
326
Functions
5
Rust module
geom::tools

Status history

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

Source: crates/solidcore/src/geom/tools.rs

Upstream: source/SMLib/src/SmTools.cpp

Port-plan notes

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

main CI e33985411 (2026-10-23): PARTIAL geom.tools cases=915 passed=883 failed=0 deferred=32 blocked_by=topology.face_p2(32). difftest: 913 cases, 781 pass, 132 deferred (topology.brep_p1 32, query.brep 32, curve.curve_p2 68; topology.vertex 60 wired by topology.vertex PR #96); 5 fns; largest: SmTools::FindCoincidentEdge, SmTools::FindFirstPointWithinTolToPnt, SmTools::FindFirstVertexWithinTolToPnt, SmTools::FindEdge; cycle back-edges (call into later units; stub or co-port): topology.edge(8), curve.curve_p2(3), curve.curve_p6(3), topology.brep_p1(2), topology.vertex(2), intersect.topology_solver_p2(1); unit-SCC #22 (220 units); 197 upstream test entry points reach this unit PR #125: FindFace reads the existing Brep::tolerance getter rather than deferring GetTolerance; 913 cases, 781 compared bit-identical, 132 deferred, perturb 781/781. UPDATE after topology.brep_p1 (PR #145): SmBrep::GetEdges wired (FindEdge / FindFace). The runner used to run the Rust FindEdge/FindFace on an empty Brep (the C++ read the .smb), which was the real cause of the 32 disagreements seen when wiring; it now imports the file's B-rep through topology.brep_p1's export, and the 64 FindEdge/FindFace cases defer on this unit's own SmCurve::DropPoint stub (curve.curve_p6, 32) and the B-rep cache bounding box (query.brep, 32): not yet compared. Re-run 913 cases, 781 pass, 0 fail, 132 deferred (curve.curve_p2 68, curve.curve_p6 32, query.brep 32). UPDATE (PR #72, topology.brep_p8): FindCoincidentEdge's curve owner/evaluation/DropPoint/CurveMaxDistanceBetween and FindEdge's DropPoint wired to curve.curve_p2/p6 (green); the coincident-edge runner cases now run on the file B-rep. Re-run 913 cases, 881 pass, 0 fail, 32 deferred (query.brep 32). GREEN (owning-face caches for the topology solver's point/face solve): FindFace solves on the B-rep mutably (LiveBrepObjects), so the fast drop reaches the face's cache and classifies on the face; the runner reports the found face's index in GetFaces order as the shim does (Mouse.smb's arena order differs). PASS geom.tools cases=915 passed=915 failed=0 deferred=0.

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
915
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: geom.extent1d green geom.solution_array green geom.vector3d green

Soft dependencies: geom.object green geom.tol green

Dependents: topology.brep_validation green

Soft dependents: query.api_queries green topology.brep_p7 green topology.trimming_tools green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmTools::FindFirstVertexWithinTolToPntSmTools.cpp:3961[find_first_vertex_within_tol_to_pnt]
SmTools::FindCoincidentEdgeSmTools.cpp:122118[find_coincident_edge]
SmTools::FindFirstPointWithinTolToPntSmTools.cpp:26272[find_first_point_within_tol_to_pnt]
SmTools::FindEdgeSmTools.cpp:34550[find_edge]
SmTools::FindFaceSmTools.cpp:40525[find_face]
Module file-header table (10 rows)
RustUpstream
[find_first_point_within_tol_to_pnt]SmTools::FindFirstPointWithinTolToPnt
[find_first_vertex_within_tol_to_pnt]SmTools::FindFirstVertexWithinTolToPnt
[find_coincident_edge]SmTools::FindCoincidentEdge
[find_edge_proved_along]none (own design)
[find_edge]SmTools::FindEdge
[find_face]SmTools::FindFace
[PointMatch]the out-params of FindFirstPointWithinTolToPnt
[VertexMatch]the out-params of FindFirstVertexWithinTolToPnt
[CoincidentEdgeQuery], [CoincidentEdge]the in- and out-params of FindCoincidentEdge
[EdgePick]the out-params of FindEdge

Upstream tests reaching this unit

SM_API_test:TestSmOrderCurves, SM_API_test:TestSmCurves, prog_test:my_test_tsurf_cyl_creation_2d, prog_test:my_test_tsurf_cyl_creation_3d, prog_test:my_test_tsurf_cyl_creation_fast, prog_test:my_test_tsurf_creation