topology.assert_valid partial
- Layer
- 36
- Upstream lines
- 2,419
- Functions
- 19
- Rust module
topology::brep::validation::assert_valid
Status history
- partial 2,700 lines
- green 2,700 lines
- partial 2,700 lines
Source: crates/solidcore/src/topology/brep/validation/assert_valid.rs
Upstream: source/SMLib/src/SmAssertArray.cpp, source/SMLib/src/SmBrep.cpp, source/SMLib/src/SmEdge.cpp, source/SMLib/src/SmEdgeuse.cpp, source/SMLib/src/SmFace.cpp, source/SMLib/src/SmFaceuse.cpp, source/SMLib/src/SmLoop.cpp, source/SMLib/src/SmLoopuse.cpp, source/SMLib/src/SmOwningTopology.cpp, source/SMLib/src/SmRegion.cpp, source/SMLib/src/SmSAGObject.cpp, source/SMLib/src/SmShell.cpp, source/SMLib/src/SmTopology.cpp, source/SMLib/src/SmVertex.cpp, source/SMLib/src/SmVertexuse.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
#1631: fixtures/topology.assert_valid/copy_ops.json (12 cases, shim op 4): the capi check of a union (with a box, with a box copy), SmApiFilletEdges and SmApiShellBrepFull result of an SmApiBrepCopy, all valid on both sides. GREEN: difftest 828 cases, 819 pass, 0 failed, 0 deferred, 9 rejected (WP4a seams of #1478 plus the extrusion AssertValid; harness owner/tolerance fixes). PR #1459, issue #1419 (WP1): SmBrep::AssertValid whole-body walk (Brep, Region, Shell, Face, Faceuse, Loop, Loopuse, Edge, Edgeuse, Vertex, Vertexuse level-0 bodies; SmTopology/SmOwningTopology/SmSAGObject base checks; validate-only tolerance pass; SmCurve::AssertValid dispatch), FormatLogMessage, SM_GetObjTypeString, public check_brep -> BrepCheck (capi smlib_brep_check). PARTIAL: 532 cases (516 fixtures: 14 primitive/constructed bodies + 14 upstream .smb files at levels 0-4, no-walk and capi levels 0-2, 10 mutation kinds on 6 bodies; 16 generated), 154 pass, 378 deferred (all on WP4 seams of #1478 except 8: topology.face_p4 201 sm_AssertTestFace32; topology.vertex 91 sm_AssertTestVertex1; topology.edge 78 sm_AssertTestEdge13; surface.surf_of_extrusion_p1 8 SmSurfOfExtrusion::AssertValid), 0 known mismatches, max_rel_err 0. sphere_mutation6_capi fixed: the legacy MakeFace copy now shares the surface's cache slot, so the trimmed cache built during creation persists as upstream's does (plan/findings/topology.assert_valid--sphere-moved-pole-lazy-trim--addendum-2026-10-29-fixed.md). Seams in assert_valid/seams.rs: WP2 helpers wired to #1472, SmSurface::AssertValid wired to #1460; WP3b curve checks and WP4 tests remain stubs (UNPORTED tags; sm_AssertTestFace32/33/37/38, sm_AssertTestEdge13 and sm_AssertTestVertex1 are not in units.json and are tagged with the topology units WP2/WP4 extend; SmSurface::AssertValid wired to surface.surface_assert_valid (PR #1460); SmPlane placement reports are named by the surface key on both sides). Regression tests: crates/solidcore/tests/issue_1419_brep_check.rs. [PR #1478 (#1419 WP4a, stacked on #1459): level-2 seams wired (sm_AssertTestFace32/33/38 -> topology::face::assert_tests, sm_AssertTestEdge13 -> topology::edge::edge_form, sm_AssertTestVertex1 -> topology::vertex::corner). Shim op 2 compares those tests entity by entity: 202 cases in fixtures/topology.assert_valid/level2_tests.json (197 pass, 5 rejected: null-link mutations 8-10 and bodies the shim cannot build); 94 level-2 AssertValid/capi cases in level2_assert_valid.json (deferred at the WP2/WP3a seams). PARTIAL topology.assert_valid cases=828 passed=351 failed=0 deferred=467 rejected=9 known_mismatch=1 max_rel_err=0e0] [PR #1702: the WP3b curve seams are ported in assert_valid/curves.rs (SmOffsetCurve, SmProjectedCurve, SmHermiteCurve, SmCrvOnSurf/SmTangentField, SmCrvInVolume::AssertValid, with the SmVolume-family checks in surface/volume/assert_valid.rs) and reachable through the public curve_assert_valid; native report comparison lives in the five curve units' assert_valid cases. Regression tests: crates/solidcore/tests/curve_assert_valid.rs.]
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
- 965
- Stored error outcomes
- 4
- 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.assert_array green topology.brep_validation green
Soft dependencies: none
Dependents: none
Soft dependents: none
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SM_GetObjTypeString | SmAssertArray.cpp:168 | 93 | |
SmAssertReport::FormatLogMessage | SmAssertArray.cpp:773 | 27 | |
SmBrep::AssertValid | SmBrep.cpp:35039 | 389 | [assert_valid] |
sm_AssertTestEdge14 | SmEdge.cpp:6996 | 36 | edge::edge, edge::edgeuse, edge::curve (private) |
SmEdge::AssertValid | SmEdge.cpp:7478 | 269 | edge::edge, edge::edgeuse, edge::curve (private) |
SmEdgeuse::AssertValid | SmEdgeuse.cpp:6070 | 285 | edge::edge, edge::edgeuse, edge::curve (private) |
sm_AssertTestFace39 | SmFace.cpp:19988 | 42 | face::face, face::faceuse (private) |
sm_AssertTestFace34 | SmFace.cpp:20289 | 43 | |
SmFace::AssertValid | SmFace.cpp:20995 | 354 | face::face, face::faceuse (private) |
SmFaceuse::AssertValid | SmFaceuse.cpp:430 | 27 | face::face, face::faceuse (private) |
SmLoop::AssertValid | SmLoop.cpp:1552 | 150 | loops::loop_, loops::loopuse (private) |
SmLoopuse::AssertValid | SmLoopuse.cpp:1469 | 52 | loops::loop_, loops::loopuse (private) |
SmOwningTopology::AssertValid | SmOwningTopology.cpp:137 | 73 | base::topology, base::owning (private) |
SmRegion::AssertValid | SmRegion.cpp:441 | 31 | shell::region, shell::shell (private) |
SmSAGObject::AssertValid | SmSAGObject.cpp:247 | 25 | base::topology, base::owning (private) |
SmShell::AssertValid | SmShell.cpp:1586 | 250 | shell::region, shell::shell (private) |
SmTopology::AssertValid | SmTopology.cpp:356 | 100 | base::topology, base::owning (private) |
SmVertex::AssertValid | SmVertex.cpp:2711 | 66 | vertex::vertex, vertex::vertexuse (private) |
SmVertexuse::AssertValid | SmVertexuse.cpp:3132 | 107 | vertex::vertex, vertex::vertexuse (private) |
Module file-header table (16 rows)
| Rust | Upstream |
|---|---|
[assert_valid] | SmBrep::AssertValid |
[check_brep], [check_brep_with_keys], [BrepCheck] | the capi smlib_brep_check sequence (ValidatePointers, then AssertValid) |
[CheckLevel] | SmAssertTestLevel (SM_LEVEL_0..SM_LEVEL_2) |
brep::sub_topology (private) | SmBrep::AssertSubTopology, the SmBrep branch of SmTopologyTraverser::GetSubTopology |
brep::tolerances (private) | SmBrep::ValidateAndUpdateTolerances(TRUE, ...) |
[validate_and_update_tolerances], [ToleranceGaps] | SmBrep::ValidateAndUpdateTolerances |
brep::collect_regions, brep::adjacent_regions (private) | SmTopologyTraverser::CollectRegions, SmRegion::GetAdjacentRegions |
base::topology, base::owning (private) | SmTopology::AssertValid, SmOwningTopology::AssertValid, SmSAGObject::AssertValid |
shell::region, shell::shell (private) | SmRegion::AssertValid, SmShell::AssertValid, sm_GetShellVertices, sm_GetShellFaceuses, SmEdgeuse::GetConnectedEdgeuses |
face::face, face::faceuse (private) | SmFace::AssertValid (level 0 and the level-2 tests whose callees exist), SmFaceuse::AssertValid, sm_AssertTestFace39 |
loops::loop_, loops::loopuse (private) | SmLoop::AssertValid, SmLoopuse::AssertValid |
edge::edge, edge::edgeuse, edge::curve (private) | SmEdge::AssertValid, sm_AssertTestEdge14, SmEdgeuse::AssertValid, the virtual SmCurve::AssertValid |
vertex::vertex, vertex::vertexuse (private) | SmVertex::AssertValid, SmVertexuse::AssertValid |
[curve_assert_valid] | the virtual SmCurve::AssertValid of a free-standing curve |
curves (private) | SmOffsetCurve, SmProjectedCurve, SmHermiteCurve, SmCrvOnSurf, SmCrvInVolume::AssertValid |
seams (private) | the callees other packages port (see that module) |
Upstream tests reaching this unit
prog_test:my_test_topology