Repository navigation
Expand file tree
/
Copy pathboolean.api_brep.toml
More file actions
12 lines (12 loc) · 5.91 KB
/
Copy pathboolean.api_brep.toml
File metadata and controls
12 lines (12 loc) · 5.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
id = "boolean.api_brep"
upstream = ["source/SM_API/src/SmApiBrep.cpp"]
rust_module = "boolean::api_brep"
depends_on = ["boolean.merge_p3"]
soft_depends_on = ["boolean.merge_p1", "boolean.merge_p2", "boolean.merge_p4", "geom.context", "topology.brep_p2"]
est_lines = 410
layer = 58
tests = ["SM_API_test:TestSmMaterialCensus", "SM_API_test:TestSmPiecewiseMerge", "SM_API_test:TestSmBooleanLists", "SM_API_test:TestApiMergeBrepsInvalidOperation", "SM_API_test:TestMergeBrepsOperation", "SM_API_test:TestSmMergeBreps"]
status = "green"
claimed_by = ""
claimed_at = ""
notes = "2026-10-25 (promoted to green alongside boolean.merge_p3 / Issue #832): PASS boolean.api_brep cases=287 passed=279 failed=0 deferred=0 max_rel_err=0e0 with_values=279 no_values=0 vacuous=0 rejected=8; SENSITIVE 279/279. 2026-10-24 (FaceIntersect homogenizes on the lent B-reps): after merging main with #816, of the 33 read-only trimmed-cache deferrals 29 pass, 2 are rejected (UB-175 on the Rust side) and 2 defer at smsurf_GetSurfaceCache tolerance-growth history (surface.surface_p2): PARTIAL boolean.api_brep cases=287 passed=265 failed=0 deferred=14 rejected=8 (was 236 passed, 45 deferred, 6 rejected). 2026-10-24 (MakeEdgeInFace through the owning B-rep): SmEdgeDefinition::Imprint runs SmBrep::MakeEdgeInFace on the owning B-rep (ProtoBrep::brep_make_edge_in_face, its own m_bEditingEnabled) and UpdateFaces evaluates edge use binormals on it (ProtoBrep::edgeuse_evaluate_binormal): PARTIAL boolean.api_brep cases=287 passed=198 failed=0 deferred=85 rejected=2 known_mismatch=2 (was 187 passed, 98 deferred); gen0059 and gen0066 reach UB-175 and are rejected on the Rust side (plan/findings.md). FACE CLASSIFY (2026-10-24, claude/face-classify-tol): 50 of the 83 SmFace::PointClassify deferrals move past ComputePointParameters (now topology.face_p4 GetBrep 32, topology.brep_p1 18); 33 remain in FaceIntersect's read-only extract_geometry/Homogenize (query.face_p2 smsurf_GetSurfaceCache read-only). The 12 SmFace::GetTolerance remain: the list operands reach manifold_boolean with face surfaces lacking the recorded face tolerance (lost in boolean/merge/p3.rs before the merge). Mac difftest: passed=187 deferred=98. PR #730 (2026-10-24): operands are now built on the Rust side with the ported SmApiCreateBox / SmApiCreateSphere (primitive::api_primitives), as the shim builds them, instead of empty stand-ins, and every merge record is compared. difftest 287 cases, 187 pass, 0 failed, 98 deferred (topology.edge 71 SmEdge::GetTolerance, query.face_p1 20 SmFace::Point3DClassify dispatch gap, topology.face_p2 7 SmFace::GetTolerance), known_mismatch 2 (census_difference_cavity, gen0220: an operand entirely inside the other; the merge ray fire keys arena identities while created operands own their surfaces under notify_ref keys, plan/findings.md). partial (PR #81): difftest cases=284 passed=142 deferred=142 (blocked_by boolean.merge_p2(81): SmMerge::SmMerge for SmApiBoolean/Union/Difference/Intersection/Merge/WithOptions; boolean.merge_p3(61): SmMerge::merge_breps / BooleanLists / BooleanTrees); compared: SmApiValidateBooleanOperands (EXTRACT_SEPARATE), SmApiMergeBreps list/operation validation incl. non-consumption; NULL/aliased operands are unrepresentable with owned Breps; C++ shim runs real box/sphere booleans for the deferred cases (record = status, faces/edges/vertices/regions/manifold) so they compare once merge lands; Rust operands are empty Breps until primitive.api_primitives (SmApiCreateBox/Sphere) is ported; 12 fns; largest: SmApiMergeBreps, SmApiBoolean, SmApiBooleanDifference, SmApiBooleanIntersection; entry points: SmApiBoolean, SmApiBooleanDifference, SmApiBooleanIntersection, SmApiBooleanLists, SmApiBooleanMerge, SmApiBooleanTrees, SmApiBooleanUnion, SmApiBooleanWithOptions, SmApiMergeBreps; 13 upstream test entry points reach this unit Re-run with boolean.merge_p3 wired (PR #245): 287 cases, 151 matched, 0 failed, 136 deferred (boolean.merge_p2 114, topology.brep_p3 21, topology.brep_p2 1); with_values=151/no_values=0 (integer status/list records, no geometric-success comparison). Perturb 151/151; fuzz 2000 PASS with 0 differs/crashes/panics/timeouts. Seven old deferrals now compare empty-first-list or stack-underflow status records; new empty-forest/unreachable-leaf cases match, defined null-leaf output remains deferred at IsManifoldSolid. Re-run in PR #149 (merge with main through 39ceb995, #283): 287 cases, 151 pass, 0 fail, 136 deferred (boolean.merge_p2 114, topology.brep_p3 21, primitive.primitive_creation_p1 1): the Trees record deferral (the Rust operands are empty stand-ins; create_box / create_sphere stop at SmPrimitiveCreation) is retagged from topology.brep_p2 (IsManifoldSolid) to primitive.primitive_creation_p1. Re-run in PR #229 (boolean.merge_p2 wired, merge with main through e5f3e441): 287 cases, 151 pass, 0 fail, 136 deferred (boolean.merge_p4 114, topology.brep_p3 21, primitive.primitive_creation_p1 1): the two-B-rep entry points construct the merge through merge_p3's DependencyMerge (MergeState::with_breps, its computed tolerance through topology.brep_p2), call SmBrep::IsManifoldSolid (topology.brep_p2) and stop at merge_p3's SmMerge::ManifoldBoolean stub (boolean.merge_p4) directly or through NonManifoldBoolean; they take the kernel mutably (the driver's mark locks). After #287 (merge with main through 7b57d8de): 287 cases, 151 pass, 0 fail, 136 deferred (query.brep 114, topology.brep_p3 21, primitive.primitive_creation_p1 1): the constructor builds #287's MergeEngine, so the 114 run merge_p4's ManifoldBoolean on it and stop at SmBrep::CalculateBoundingBox (query.brep). UPDATE (PR #204, topology.brep_p3): with boolean.merge_p3's list-operand copies wired to topology::brep::p3, lists_and_trees_reach_the_merge now stops at topology.brep_p4. Gate on the wired tree (PR #204 4c7a444b): 287 cases, 151 pass, 0 fail, 136 deferred; case by case the 21 SmBrep::SmBrep(copy) (topology.brep_p3) deferrals relabel to topology.brep_p4 SmBrep::StitchFaces, no outcome change."