solidcore

Units / boolean

boolean.merge_p5 green

Layer
55
Upstream lines
475
Functions
1
Rust module
boolean::merge::p5

Status history

Oct 12Nov 25
  1. todo 475 lines
  2. partial 475 lines
  3. green 475 lines

Source: crates/solidcore/src/boolean/merge/p5.rs

Upstream: source/SMLib/src/SmMerge.cpp

Port-plan notes

These notes preserve historical port measurements and limitations, not current CI results.

PARTIAL (PR #161): 140 cases, 108 bit-identical passes, zero failures, 32 deferred on query.brep (SmBrep::Point3DClassify); no absolute floors. ProcessWiresAndShellVertices ported with explicit operands, caller-owned marks and shared mutable mate maps; real SmMerge/Relate oracle on native-order raw graphs, all 11 operations, reversed/shared marks, mapped face edges, closed/sub-domain/tiny/huge wires, isolated vertices, and solid box fixtures. Deletion adapters remain Unported in topology.brep_p4; edge copies call boolean.merge_p2's MergeEdge (wired in PR #229); vertex copies delegate to boolean.merge_p1; no attached Brep cache yet. No incoming UNPORTED back-edges. Known UB-1 part-container inputs rejected before C++; guard regression included. Review regressions: unmated marked wires pass for the seven non-keep operations; null keep entries excluded only for Union/Intersection/Merge/PartialMerge; nonidentity mates preserve order; both runners reject duplicate Relate targets; generated operands, marks and mate permutations vary independently. Mutable bidirectional relation state is shared with the copy adapter. 1 fns; largest: SmMerge::ProcessWiresAndShellVertices; unit-SCC #22 (220 units); 105 upstream test entry points reach this unit PR #163 wires MergeVertex to boolean.merge_p1, shares mutable topology_intersector::p1::Relations with both operand directions, and passes the notification store/context. Newly created mates wait on full intersector Relate; classification remains the first deferred dependency in existing cases. TOUCHED by boolean.topology_intersector_p1 (PR #146): process_wires_and_shell_vertices takes other: &mut Brep (merge_vertex -> relate_vertices raises both vertex tolerances; upstream mutates its non-const m_pOther member); runner and tests pass it mutably. TOUCHED by boolean.merge_p4 (PR #243): process_wires_and_shell_vertices_with_kernels reuses the existing collection/copy phases with each operand mark context and live source-context notifications; the original API remains available. Reverified 140 cases: 108 passed, 0 failed, 32 query.brep deferrals. SweepStore wiring forwards the source copy context and mutable constructor kernel. The runner shares merge_p2 live-topology serialization; detached arena slots deleted by C++ are excluded without changing the corpus or comparison rules. GREEN (PR #441 wired the topology.brep_p4 deletion adapters; batch/finish-1): 140 cases, 140 passed, 0 failed, 0 deferred. UPDATE (difftest: Rust-built operands): the Rust side now builds both operands itself (own_operand: the Rust reader for .smb files, own_builder::build_as for wire, face and network sources, make_shell_vertex for a vertex, an empty B-rep), renumbered into the shim's native_graph order; nothing of the shim's export (graph, counts, vertex use lists) reaches it. The unit's earlier green rested on C++-built inputs for every source (the Rust side imported the shim's export of each operand, its vertex use lists included); mismatches this exposes stay red with a finding. Counts: see the PR's difftest summary.

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
140
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: boolean.merge_p1 green boolean.merge_p2 green boolean.topology_intersector_p1 green geom.object green intersect.point_class green topology.edge green

Soft dependencies: curve.curve_p2 green geom.a_object green geom.extent1d green geom.tol green geom.vector3d green query.brep green topology.brep_cache green topology.brep_p1 green topology.brep_p4 green topology.edgeuse_p1 green topology.face_p2 partial topology.shell green topology.topology green topology.topology_traverser green topology.vertex green

Dependents: boolean.merge_p3 green boolean.merge_p4 green

Soft dependents: none

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmMerge::ProcessWiresAndShellVerticesSmMerge.cpp:7245475[process_wires_and_shell_vertices]
Module file-header table (3 rows)
RustUpstream
[process_wires_and_shell_vertices]SmMerge::ProcessWiresAndShellVertices
[process_wires_and_shell_vertices_with_kernels]the same stage with each operand context
[Relations]shared bidirectional mate lookups from m_vTI

Upstream tests reaching this unit

prog_test:my_test_bbu, SM_API_test:TestSmMaterialCensus, SM_API_test:TestSmPiecewiseMerge, SM_API_test:TestSmBooleanLists, SM_API_test:TestKernelMergeBrepsInvalidInput, SM_API_test:TestApiMergeBrepsInvalidOperation