heal.heal_data_p1 green
- Layer
- 49
- Upstream lines
- 922
- Functions
- 11
- Rust module
heal::heal_data::p1
Status history
- todo 922 lines
- partial 922 lines
- green 922 lines
Source: crates/solidcore/src/heal/heal_data/p1.rs
Upstream: source/SMLib/src/SmHealData.cpp, source/SM_API/src/SmApiHeal.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
GREEN (2026-10-25, PR #970): all 495 cases pass (495 with values, 0 failed, 0 deferred, max_rel_err=0e0, --perturb SENSITIVE) now that primitive.api_primitives (create_box) and trimmed surface cache history are on main. 2026-10-24 (wire: trimmed surface cache history; the intersect::curve_class::p7 tolerance-growth deferral removed, plan/findings.md 'trimmed surface cache history: tolerance-growth deferral removed'), Linux, stacked PR with main merged 2026-10-25: all 4 surface.surface_p2 deferrals pass (file_Endcap and file_Endcap_rebuild_reverse since main's ClassifyLoops loop bisector fix). PARTIAL heal.heal_data_p1 cases=495 passed=488 failed=0 deferred=7 known_mismatch=0 blocked_by=primitive.api_primitives(7). main CI e33985411 (2026-10-23): PARTIAL heal.heal_data_p1 cases=495 passed=367 failed=0 deferred=128 blocked_by=intersect.curve_class_p4(109),primitive.api_primitives(7),surface.surface_p2(4),topology.face_p4(8). PARTIAL (PR #109): difftest 493 cases (173 fixture: 57 in fixtures/heal.heal_data_p1/upstream.json (SM_API_test TestSmHealBrep box 10 through SmApiHealBrep and the HealTgts order, prog_test my_test_squeeze_edge_tracks_removal / my_test_missing_poles_refreshes_all_faces boxes, my_test_closed_sphere_properties spheres, 10 pt_TestFiles .smb B-reps plain and rebuilt+reversed, each with and without the edge/vertex caches), 116 in edge_cases.json (done ops around the Fix_TolSizes / Fix_SplitEdgesAtSeam gates, props without a face, old counts equal/above/tail, not-yet moves, removals, stage re-runs, ReSet with/without new-object lists, HealBrep null/all/target lists/op none, Fix_InfiniteRegion, 1e-4..1e4 boxes, sheet faces, 6 open/closed B-spline files x 4 ops x rebuilt); 320 generated heal scripts on generated B-spline faces, boxes, spheres, files and other generated B-reps, plus SmApiHealBrep null/box), 265 pass (max_rel_err 0, no absolute floors), 0 failed, 228 deferred (topology.face_p2 52: SmFace::GetTolerance stubs in the plane box and surface zone tolerance, reached by stage 2; query.face_p4 62: SmFace::ClassifyLoops; topology.edgeuse_p3 45: p2 gap steps; topology.face_p4 37: SmFace::HasSeamProblem on closed surfaces; topology.face_p3 18: SmFace::CreateUVTrimCurves; topology.brep_p1 12: SmBrep::HealBrep/GetVertices/GetInfiniteRegion; heal.heal_data_p3 2: HealTgts); --perturb 265/265 detected (SmRegion::IsVoid/SetIsVoid wired to topology.shell in PR #154, which moved cases from topology.face_p2 to pass and query.face_p4). Harness: the SmHealData steps run as codes 23..31 of heal.heal_data_p2's heal scripts (shim p1_step, check_heal, p2 runner Step), comparing p2's whole healer dump plus a stage 2/3 face props snapshot; SmApiHealBrep has its own shim. Builds on PR #128 (heal.heal_data_p2, which merges PR #122 heal.face_props): merge those first. No UNPORTED(heal.heal_data_p1) stubs existed. UNPORTED stubs: topology.brep_p1 (SmBrep::GetVertices, GetEdges, GetFaces, GetInfiniteRegion, HealBrep), heal.heal_data_p3 (SmHealData::HealTgts), topology.brep_p6 (SmBrep::TestClosureSplitRegion), topology.brep_p5 (SmBrep::FindAndSetInfiniteRegion), topology.face_p3 (SmFace::CreateUVTrimCurves). 11 fns; largest: SmHealData::Cache_FaceProps_Stage3, SmHealData::Cache_FaceProps_Stage2, SmHealData::Fix_BadSheets, SmHealData::HealBrep; entry points: SmApiHealBrep; cycle back-edges (call into later units; stub or co-port): heal.heal_data_p3(1); unit-SCC #22 (220 units); 59 upstream test entry points reach this unit [topology.edgeuse_p3 merged (PR #117): the p2 gap steps no longer defer: 493 cases, 267 pass, 0 failed, 226 deferred (topology.face_p2 83, query.face_p4 64, topology.face_p4 49, topology.face_p3 18, topology.brep_p1 12)] PR #169 wires TestClosureSplitRegion to topology::brep::p6 with the caller Kernel and persistent Marks; no remaining UNPORTED(topology.brep_p6) sites. Fix_BadSheets uses the split attempt: its bare native call ignores SmStatus but preserves partial outputs, while Rust representation errors and Unported propagate. Re-run in PR #169 after merging main: same 493 cases, 267 pass, 0 failed, 226 deferred UPDATE (PR #145, topology.brep_p1): the five topology.brep_p1 stubs are wired (GetVertices/GetEdges/GetFaces, the region walk from the infinite region via topology::brep::p1::regions, HealBrep); the heal harness lists export carries the infinite-region index (Fix_InfiniteRegion on the boxes compared a B-rep without one before). With #164 (heal.heal_data_p3) merged, HealBrep / SmApiHealBrep run the real heal sequence: 493 cases, 266 pass, 0 failed, 227 deferred (query.face_p4 62, topology.face_p2 55, topology.edgeuse_p3 45, topology.face_p4 37, topology.face_p3 18, topology.brep_p2 7 (SmBrep::SetTolerance in Fix_TolSizes), topology.shell 3). After topology.brep_p1 wired its topology.shell calls: 493 cases, 269 pass, 0 failed, 224 deferred (query.face_p4 62, topology.face_p2 55, topology.edgeuse_p3 45, topology.face_p4 37, topology.face_p3 18, topology.brep_p2 7). [topology.face_p3 wired (PR #139, CreateUVTrimCurves): the 18 topology.face_p3 deferrals now defer inside CreateUVTrimCurves at SmFace::GetUpwardLoopuses (topology.face_p4); counts: see reports/difftest/heal.heal_data_p1.json] UPDATE after topology.brep_p2 (PR #149) wired SmBrep::SetTolerance: the 7 SmApiHealBrep box cases ran an empty Rust Brep against the C++ SmApiCreateBox box (the Rust side cannot build it), which compared different inputs once SetTolerance stopped deferring; the runner now defers them to primitive.api_primitives (SmApiCreateBox). Re-run 493 cases, 266 pass, 0 failed, 227 deferred (query.face_p4 62, topology.face_p2 55, topology.edgeuse_p3 45, topology.face_p4 37, topology.face_p3 18, primitive.api_primitives 7, topology.shell 3), --perturb SENSITIVE 266/266. Re-run after merging #145 5b1b28ae (main through e1ae2640) into #149: 493 cases, 271 pass, 0 fail, 222 deferred (topology.face_p2 84, query.face_p4 64, topology.face_p4 49, topology.face_p3 18, primitive.api_primitives 7). fix_bad_sheets takes the NotifyEnv the region split (topology.brep_p6) notifies through (signature only; PR #149). Owner zone-tol cache (surface/owner-zone-tol): 493 cases, 329 pass, 0 fail, 164 deferred. Runner builds the api_heal box with the ported create_box (2026-10-25): 495 cases, 491 passed, 4 deferred on surface.surface_p2, 0 failed.
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
- 495
- 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: heal.heal_data_p2 green topology.brep_p1 green topology.topology green
Soft dependencies: geom.context green geom.hash_table green geom.object green heal.face_props green topology.brep_p5 green topology.brep_p6 green topology.edgeuse_p1 green topology.face_p2 partial topology.face_p3 green topology.shell green topology.topology_traverser green
Dependents: heal.heal_data_p3 green
Soft dependents: none
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmHealData::SmHealData | SmHealData.cpp:86 | 15 | [HealData::new] (in [super::p2]) |
SmHealData::~SmHealData | SmHealData.cpp:299 | 24 | Drop (implicit) |
SmHealData::ReSet | SmHealData.cpp:433 | 101 | [HealData::reset] |
SmHealData::MoveToNotYetProblems | SmHealData.cpp:1476 | 25 | [HealData::move_to_not_yet_problems] |
SmHealData::HealBrep | SmHealData.cpp:1515 | 112 | [HealData::heal_brep], [HealBrepTargets] |
SmHealData::Cache_FaceProps_Stage2 | SmHealData.cpp:3980 | 145 | [HealData::cache_face_props_stage2] |
SmHealData::Fix_BadSheets | SmHealData.cpp:4713 | 134 | [HealData::fix_bad_sheets] |
SmHealData::Cache_FaceProps_Stage3 | SmHealData.cpp:4989 | 203 | [HealData::cache_face_props_stage3] |
SmHealData::Make_UVTrimCurves | SmHealData.cpp:6576 | 90 | [HealData::make_uv_trim_curves] |
SmHealData::Fix_InfiniteRegion | SmHealData.cpp:6673 | 60 | [HealData::fix_infinite_region] |
SmApiHealBrep | SmApiHeal.cpp:27 | 13 | [api_heal_brep] |
Module file-header table (11 rows)
| Rust | Upstream |
|---|---|
[HealData::new] (in [super::p2]) | SmHealData::SmHealData() (CO-PORTED by heal.heal_data_p2) |
Drop (implicit) | SmHealData::~SmHealData |
[HealData::reset] | SmHealData::ReSet |
[HealData::move_to_not_yet_problems] | SmHealData::MoveToNotYetProblems |
[HealData::heal_brep], [HealBrepTargets] | SmHealData::HealBrep |
[HealData::cache_face_props_stage2] | SmHealData::Cache_FaceProps_Stage2 |
[HealData::fix_bad_sheets] | SmHealData::Fix_BadSheets |
[HealData::cache_face_props_stage3] | SmHealData::Cache_FaceProps_Stage3 |
[HealData::make_uv_trim_curves] | SmHealData::Make_UVTrimCurves |
[HealData::fix_infinite_region] | SmHealData::Fix_InfiniteRegion |
[api_heal_brep] | SmApiHealBrep |
Upstream tests reaching this unit
prog_test:my_test_closed_sphere_properties, prog_test:my_test_squeeze_edge_tracks_removal, prog_test:my_test_missing_poles_refreshes_all_faces, SM_API_test:TestSmHealBrep, SM_API_test:TestSmHeal, prog_test:my_test_MakeFace, pt_TestFiles/MakeFace/ApproximateSphere.smp