topology.brep_cache green
- Layer
- 46
- Upstream lines
- 389
- Functions
- 10
- Rust module
topology::brep_cache
Status history
- todo 389 lines
- partial 389 lines
- green 389 lines
Source: crates/solidcore/src/topology/brep_cache.rs
Upstream: source/SMLib/inc/SmBrepCache.h, source/SMLib/src/SmBrepCache.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
main CI e33985411 (2026-10-23): PASS topology.brep_cache cases=663 passed=663 failed=0 deferred=0. PARTIAL (PR #115): 663 difftest cases, 662 bit-identical passes, 0 failures, 1 deferred to query.brep (SmBrep::CalculateBoundingBox); no absolute floors. Polygon BuildTrees, constructor/accessors/type checks and ReSizeTrees with real exact vertices/line edges are compared, including shared polygon boundaries, tree split thresholds, empty/degenerate inputs and scales 1e-12..1e50. Exact BuildTrees remains deferred at its first callee; exact face sizing also awaits query.face_p1/topology.face_p4. Cache objects use typed ids and caller-supplied owner keys. All incoming UNPORTED(topology.brep_cache) sites wired to the cache factory/accessors and solver adapter; geom.a_object retains 168 deferrals (131 now query.brep, 37 topology.shell). 10 fns; largest: SmBrepCache::BuildTrees, SmBrepCache::ReSizeTrees, SmBrepCache::SmBrepCache, SmBrepCache::~SmBrepCache; cycle back-edges (call into later units; stub or co-port): query.poly(10), query.face_p1(2), query.brep(1), query.edge(1); unit-SCC #22 (220 units); only 145 of 389 lines survive RTA (reached via virtual dispatch to classes no in-scope entry point constructs); low priority / likely deferrable; 319 upstream test entry points reach this unit Re-run after topology.brep_p1 (PR #145) wired SmBrep::GetVertices/GetEdges/GetFaces: 663 cases, 662 pass, 0 failed, 1 deferred (query.brep 1), max_rel_err 0. Re-run in PR #238 (face boxes wired to query::face::p1): 663 cases, 662 pass, 1 deferred (query.brep), 0 failed. GREEN after query.brep (PR #329): the B-rep box is ported, so the cache builds; 0 deferred.
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
- 663
- 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.extent3d green geom.object green geom.tree green geom.vector3d green topology.brep_p1 green topology.edge green
Soft dependencies: curve.curve_p2 green curve.curve_p6 green geom.a_object green geom.tol green surface.surface_p1 green surface.surface_p2 partial topology.face_p2 partial topology.face_p4 green topology.vertex green
Dependents: topology.brep_p2 green
Soft dependents: boolean.merge_p4 green boolean.merge_p5 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmBrepCache::GetVertexTree | SmBrepCache.h:46 | 1 | [BrepCache::vertex_tree], [BrepCache::curve_tree], [BrepCache::surface_tree] |
SmBrepCache::GetCurveTree | SmBrepCache.h:47 | 1 | [BrepCache::vertex_tree], [BrepCache::curve_tree], [BrepCache::surface_tree] |
SmBrepCache::GetSurfaceTree | SmBrepCache.h:48 | 1 | [BrepCache::vertex_tree], [BrepCache::curve_tree], [BrepCache::surface_tree] |
SmBrepCache::GetType | SmBrepCache.h:65 | 1 | [TYPE], [is_kind_of] |
SmBrepCache::GetTypeString | SmBrepCache.h:65 | 1 | |
SmBrepCache::SmBrepCache | SmBrepCache.cpp:36 | 38 | [BrepCache::new] |
SmBrepCache::~SmBrepCache | SmBrepCache.cpp:80 | 15 | Drop (implicit) |
SmBrepCache::BuildTrees | SmBrepCache.cpp:187 | 200 | [BrepCache::build_trees] |
SmBrepCache::ReSizeTrees | SmBrepCache.cpp:411 | 127 | [BrepCache::resize_trees] |
SmBrepCache::IsKindOf | SmBrepCache.cpp:658 | 4 | [TYPE], [is_kind_of] |
Module file-header table (8 rows)
| Rust | Upstream |
|---|---|
[BrepCache::new] | SmBrepCache::SmBrepCache |
[BrepCache::build_trees] | SmBrepCache::BuildTrees |
[BrepCache::resize_trees] | SmBrepCache::ReSizeTrees |
[BrepCache::vertex_tree], [BrepCache::curve_tree], [BrepCache::surface_tree] | GetVertexTree, GetCurveTree, GetSurfaceTree |
[make_brep_cache] | SmSAGObject::CacheMakeOrValidate (new-cache path) |
[BrepObjects] | SmTopologySolver object/cache access |
[TYPE], [is_kind_of] | GetType, IsKindOf |
Drop (implicit) | SmBrepCache::~SmBrepCache |
Upstream tests reaching this unit
prog_test:my_test_extent3d, prog_test:my_test_vector2d, 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