topology.brep_data green
- Layer
- 32
- Upstream lines
- 1,466
- Functions
- 17
- Rust module
topology::brep_data
Status history
- todo 1,466 lines
- partial 1,466 lines
- green 1,466 lines
Source: crates/solidcore/src/topology/brep_data.rs
Upstream: source/SMLib/inc/SmBrepData.h, source/SMLib/src/SmBrepData.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
#76 kernel-aware Surface dispatch (PR #313, 2026-10-21): 2379 cases, 2377 pass, 0 failed, 2 deferred (surface.surf_of_extrusion_p2 2), max_rel_err 0; before 2370 pass / 9 deferred. 17 fns; largest: SmBrepData::ReadFromDB, SmBrepData::ReadCurveFromDB, SmBrepData::ReadSurfaceFromDB, SmEUData::ReadFromDB; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; PARTIAL (PR #25): difftest 2379 cases (358 upstream .smb fixtures: 186 ReadFromFile, 170 ReadFromDB v30, 2 part-file B-reps at v32; 21 edge-case fixtures; 2000 generated ASCII/binary B-rep, curve, surface, file and constructor cases for versions 29-50), 2324 pass bit-identical, 55 deferred (surface.surface_p3 46: offset surface records, read through the ported SmOffsetSurface since PR #62, wait on SmSurface::GetSingularities; surface.cone_p1 7: SmCone/SmCylinder records are read in full but have no SurfaceKind variant yet (DISPATCH GAP), surface.surf_of_extrusion_p2 2; SmPlane::ReadFromDB wired by surface.plane_p2 PR #40); --perturb SENSITIVE PR #62 (2026-10-15): 2379 cases, 2370 pass, 0 failed, 9 deferred (surface.cone_p1 7, surface.surf_of_extrusion_p2 2); the 46 offset surface records (deferred on surface.offset_surface) now read and compare. GREEN (2026-10-23, PR #600): difftest PASS topology.brep_data cases=2379 passed=2379 failed=0 deferred=0 max_rel_err=0e0 with_values=2379 no_values=0 vacuous=0; the former 2 topology.brep_data deferrals (surface.surf_of_extrusion_p2 2) no longer occur on main 38b0745b3; local rerun and CI run 39935703236 agree. Platform note (2026-10-24, issue #450, PR #749): the read_db cases are libstdc++-dependent (upstream's ASCII reader UB-5/UB-6 + the SmBendVolume separator defect are benign only under GCC); on a non-libstdc++ C++ build (e.g. macOS libc++) they report skipped(platform) instead of running; canonical status stays green (Linux/libstdc++). File-mode note (2026-10-25, PR #829, follows #815): the ReadFromFile oracle is now classified per case on a non-libstdc++ reference. Runner::skipped_platform reports skipped(platform) for an ASCII file stream carrying a decimal double that libc++ num_get rejects (rounds to subnormal or underflows to zero, e.g. gen0110's 4.595e-321) while libstdc++ accepts it; upstream then ignores the failed stream and reads unset locals (UB-6/UB-75). Binary file streams and ASCII file streams without such a token keep their native comparisons: local macOS full run 2379 cases, 1006 passed (all with compared values), 0 failed, 0 deferred, 1373 skipped(platform) = 1265 pre-existing db skips + 108 generated ASCII file cases; all 186 upstream .smb file fixtures still compare. Without the skip gen0110 segfaults (C++ SmShellData::ReadFromDB, #815) and sampled gen0010/gen0080/gen0103/gen0112 fail (C++ dump empty, Rust reads 51-63 values). Linux/libstdc++ never consults the hook, so canonical comparisons are unchanged. SM_API batch S2 (fixer-7, 2026-10-29): SmBrep::WriteToFile (new file, native geometry) added as topology::brep_data_write::write_brep_to_file; compared byte for byte through topology.api_files' write_bytes cases.
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,379
- 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.attribute green geom.object green geom.tol green topology.database_io green
Soft dependencies: curve.composite_curve_p1 green curve.curve_p2 green geom.a_object green geom.extent1d green geom.extent2d green geom.vector2d green geom.vector3d green nurbs.b_spline_curve_p2 green nurbs.b_spline_surface_p1 green surface.offset_surface green surface.surface_p2 partial
Dependents: topology.api_files partial
Soft dependents: topology.brep_p10 green topology.brep_p7 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmBrepData::GetHealerVersion | SmBrepData.h:853 | 1 | [BrepData::healer_version] |
SmBrepData::SetHealerVersion | SmBrepData.h:855 | 1 | [BrepData::set_healer_version] |
SmBrepData::SmBrepData | SmBrepData.cpp:2135 | 42 | [BrepData::new] |
SmBrepData::~SmBrepData | SmBrepData.cpp:2224 | 36 | Drop (implicit) |
SmBrepData::ReadFromDB | SmBrepData.cpp:2933 | 525 | [BrepData::read_from_db] |
SmBrepData::ReadFromFile | SmBrepData.cpp:3585 | 91 | [BrepData::read_from_file] |
SmTopologyData::ReadFromDB | SmBrepData.cpp:4261 | 52 | [TopologyData] / [TopologyData::read_from_db] |
SmRegionData::ReadFromDB | SmBrepData.cpp:4375 | 34 | [RegionData] / [RegionData::read_from_db] |
SmShellData::ReadFromDB | SmBrepData.cpp:4450 | 59 | [ShellData] / [ShellData::read_from_db] |
SmFaceuseData::ReadFromDB | SmBrepData.cpp:4577 | 32 | [FaceuseData] / [FaceuseData::read_from_db] |
SmFaceData::ReadFromDB | SmBrepData.cpp:4648 | 66 | [FaceData] / [FaceData::read_from_db] |
SmLoopData::ReadFromDB | SmBrepData.cpp:4782 | 51 | [LoopData] / [LoopData::read_from_db] |
SmEUData::ReadFromDB | SmBrepData.cpp:4892 | 98 | [EuData] / [EuData::read_from_db] |
SmEdgeData::ReadFromDB | SmBrepData.cpp:5090 | 60 | [EdgeData] / [EdgeData::read_from_db] |
SmVertexData::ReadFromDB | SmBrepData.cpp:5214 | 50 | [VertexData] / [VertexData::read_from_db] |
SmBrepData::ReadCurveFromDB | SmBrepData.cpp:5324 | 166 | [read_curve_from_db] |
SmBrepData::ReadSurfaceFromDB | SmBrepData.cpp:5646 | 102 | [read_surface_from_db] |
Module file-header table (20 rows)
| Rust | Upstream |
|---|---|
[BrepData] | SmBrepData |
[BrepData::new] | SmBrepData::SmBrepData |
Drop (implicit) | SmBrepData::~SmBrepData |
[BrepData::healer_version] | SmBrepData::GetHealerVersion |
[BrepData::set_healer_version] | SmBrepData::SetHealerVersion |
[BrepData::read_from_db] | SmBrepData::ReadFromDB |
[BrepData::read_from_file] | SmBrepData::ReadFromFile |
[read_curve_from_db] | SmBrepData::ReadCurveFromDB |
[read_surface_from_db] | SmBrepData::ReadSurfaceFromDB |
[TopologyData] / [TopologyData::read_from_db] | SmTopologyData / SmTopologyData::ReadFromDB |
[RegionData] / [RegionData::read_from_db] | SmRegionData / SmRegionData::ReadFromDB |
[ShellData] / [ShellData::read_from_db] | SmShellData / SmShellData::ReadFromDB |
[FaceuseData] / [FaceuseData::read_from_db] | SmFaceuseData / SmFaceuseData::ReadFromDB |
[FaceData] / [FaceData::read_from_db] | SmFaceData / SmFaceData::ReadFromDB |
[LoopData] / [LoopData::read_from_db] | SmLoopData / SmLoopData::ReadFromDB |
[EuData] / [EuData::read_from_db] | SmEUData / SmEUData::ReadFromDB |
[EdgeData] / [EdgeData::read_from_db] | SmEdgeData / SmEdgeData::ReadFromDB |
[VertexData] / [VertexData::read_from_db] | SmVertexData / SmVertexData::ReadFromDB |
[DataSourceType] | SmDataSourceType |
[NO_OBJECT] | SM_NO_OBJECT |
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