VDE-1345: add brep::pick_entity (world-space hit point -> nearest B-Rep
face/edge/vertex) so the host can resolve mate entities without treating
display-mesh triangle indices as B-Rep face ids. Ties prefer the more
specific entity (Vertex > Edge > Face); out-of-range/NaN/empty model return
nullopt instead of throwing. Add mesh::display_mesh_triangle_face as the
only safe triangle -> face mapping entry point.
VDE-1276: add mesh::audit_display_mesh, a topology/array consistency audit
for host display-mesh caches (invalid/hidden face tags, unrepresented
faces, failed-face triangles, out-of-range indices, degenerate triangles,
array length mismatches).
Tests: 5 VDE1345EntityPick cases in test_vde1238_entity_geometry and 5
display-mesh audit/mapping cases in test_display_mesh.
test_vde1238_entity_geometry 25/25, test_display_mesh 21/21, test_brep
96/96, PR gate 918/918 (58.66 s).
Docs: new docs/reference/host-entity-pick-2026-11-16.md; kernel-side
handling sections in VDE-1345/VDE-1276; feedback status, remaining gaps
and synthetic host fixtures updated.
is_circle_section used the caller's uninitialized Vector3D normal in the coplanarity sampling loop before assigning it at the end; suffix tests rewriting the stack flipped rational-circle sections to the generic resampling path, giving loft weight sum 26.414213562 instead of 23.485281374 and offset fit residuals 4.3e-2. Assign plane_normal before the loop and hand it back as the output.
Regression: MeasureTest.LoftOfRationalCirclesStaysRational (rational Coons prefix + 3-circle loft; weight sum and v-boundary tolerance 1e-12). test_measure 160/160; test_generative_surfaces 33/33; test_curve_tools 52/52; test_brep 96/96; PR gate 918/918.
analytic_measure now evaluates faces in parallel by default (hardware concurrency capped at 16; serial for <16 faces, or when a MassIntegralBudget is supplied). Per-face reduction is performed in face order on the main thread, so results stay bit-identical to the serial path: PWB_110_12_MD_30W.STEP body2 body_volume drops from 32.8 s (serial) to 7.77 s on 8 threads with volume/area unchanged. VDE_ANALYTIC_THREADS overrides the thread count (1 = serial).
Add AnalyticMeasureParallel.MatchesSerialBitwise to test_measure, keeping a bitwise serial-vs-parallel contract. While pinning the flake, MeasureTest.OffsetSurfaceLoftIsHighAccuracy remains order-dependent in full runs (pre-existing).
- CB4 assembly geometry fix (WP-F): PCurve construction collapsed 3D-arc/UV-straight curved boundaries into two-point lines, making to_mesh chord across a 90-degree arc; mesh volume was +14% and a planar cap reported area 13.73 > full circle 12.57. Fix adds curve_is_straight_3d + keep_dense make_uv_pcurve so non-collinear arcs are not collapsed, restores two-point pcurves for UV axis-aligned rectangle loops to hit vde_fast_analytic_ruled_mesh (coaxial), reorders rectangle candidate loops, resyncs reversed flags and rebuilds trim domains
- CB0 audit calibration: classify_point_mesh used tol both as Moeller-Trumbore ray epsilon and as hit filter, so widening it to the chord band broke parity. Ray epsilon is now fixed at 1e-6 and separated from the ON distance threshold (on_threshold=max(1e-4,tol)); new CurvedBooleanOptions::membership_on_tol (default 6e-2 chord band) skips boundary-band samples, while the legacy failure-shape recording baseline explicitly keeps 1e-6
- acceptance (new CurvedBooleanEntry.ObliqueCylinderEndToEndPassesAudit hard assertions): oblique union 20 faces valid/watertight 1.0/dangling 0, V=198.402137 vs Monte-Carlo truth 198.375 +/- 0.08 (+0.014%), mismatch 0; intersection 9 faces V=52.925679 (truth 52.93); difference 15 faces V=72.738299 (truth 72.73); box union/diff and coaxial union unchanged (1125.663706 / 874.336294 / 188.495559, mismatch 0)
- pinned oblique integration test promoted to hard pass assertions (volume within 1% of truth, membership mismatch <=1e-3, valid/watertight/dangling/non-manifold)
- full new-binary ctest -C Release -j8: 8958/8958 pass in 796.43 s; CBRA suite with slow fixtures 62/62
- version 1.0.435; reports 497 (WP-F) and 498 (project summary and acceptance); plan CB0-CB6 complete, A4-2 oblique union acceptance met
- CB1 (WP-C): build_cut_graph now clips intersection branches to the intersection of both faces' trim domains; exact curves use a signed intrusion field plus 60-step bisection and closed-form fractional-parameter evaluation, giving machine-precision boundary events (oblique residual 1.4e-15, 20 endpoints cluster into 12 pairs, identical across face pairs); degenerate/zero-length run guards added
- CB2 (WP-D): coincident-rim filtering (coaxial caps 98->1 fragment), pinch splitting (oblique quarter patches 2->3 fragments), junction merge, insert_point_on_loop tolerance and split_fragment_by_open index fixes (root cause of box zero-length cut edges)
- CB3: analytic coincident-face explanation for ON fragments (coincident_overlap, total_on_explained; ok semantics extension documented in report 495 section 7)
- CB4 (WP-E): degenerate/duplicate edge cleanup with non-manifold guard and zero-rebuild fast path, canonical near-duplicate event merging, edge reversed flag fix, assemble/validate dangling parity; pinned tests promoted to hard pass assertions (oblique pinned as topologically green but volume/membership failing)
- results: box_cyl union/diff valid/wt 1.0/dangling 0 with V=1125.663706/874.336294; coaxial union single shell valid/wt 1.0/dangling 0 V=188.495559 (analytic); oblique union topologically green (dangling 0, wt 1.0) but analytic volume 210.30 vs true 198.38 -- root cause traced to measure::exact_planar_measure Green path vs stored trim/pcurve inconsistency (planar cap area 13.73 > full circle 12.57); per-face stored-trim integral 198.39 matches Monte-Carlo truth, measure-side fix is the next work package
- tests: CBRA ctest (slow integration enabled) 61/61 pass; registered 8918
- version 1.0.434; reports 494/495/496
- VDE_CB4_DIAG diagnostics classify dangling edges by provenance: oblique union had cut=3/orig=36 across A/B, i.e. adjacent fragments trimmed the same original seam/cap arc differently
- CB4 fixes: original-edge canonical split via OrigEdgePlan/build_original_run_segments keyed by body+edge index; cross-branch global event clustering with unified loop vertex positions (cluster_branch_events/compute_loop_positions); duplicate dangling edge merge + compact rebuild (repair_duplicate_dangling_edges, 2 edges repaired)
- results: oblique union dangling 39->15, watertightness 0.44->0.741; box-cylinder union/difference unchanged and still valid/watertight/dangling0 with accurate volumes (1125.669654 / 874.336316)
- WP-B: coincident analytic face detection in CB4 (4/6 side patches each) and union rule keeping only side A for ON fragments on coincident pairs (unit test); coaxial still falls back explicitly because ON fragments are on caps (upstream CB2/CB3)
- tests: test_curved_boolean_assemble 19/19 EXIT 0 (13 PASS + 2 gated SKIP); CBRA subset 48; version 1.0.433; report 493
- VDE1242 fluid domain: background tet mesh now disables reject_invalid_output (external domain is a multi-shell non-convex background; parity filtering produces the real fluid region); 36/36 + CAE subset 61/61
- BenchBoolean Complexity_* were genuine 600s timeouts at original resolutions (baseline equally slow, not a branch regression); reduced resolutions keep the union coverage meaningful (27.5s/58.0s standalone, 80.8s/88.5s under -j8)
- BooleanBenchmarkTest wall-clock assertion is load-sensitive: RUN_SERIAL isolation via add_vde_test properties (no assertion changes); CB0 baseline recording test added to the same serial list
- real concurrency defect in src/brep was fixed earlier in 1.0.429 and verified again by the failures workstream (0/150 default OMP after removing the temporary OMP_NUM_THREADS=1 isolation)
- CB4 face-orientation fix: assembled faces now preserve the input face reversed flag XOR the predicate reversal, so cylinder cap contributions no longer cancel; box union volume 1125.669654 vs analytic 1125.663708 (5e-6 rel), difference 874.336316 (2e-5), both valid/watertight/dangling 0
- full suite (new binaries): 8941/8942 pass, 805.74 s; the single remaining failure (CB0 legacy-shape recording under heavy load) now runs serial
- version 1.0.431; reports 486 + updated 490
- ssi_boolean get_mesh cache had no geometry fingerprint: same-address objects with changed geometry (in-place transform / address reuse) returned stale meshes, causing CB3 end-cap fragments to classify all-ON; now keyed by O(1) topology+AABB FNV-1a fingerprint, rebuilding mesh and clearing the grid cache on mismatch
- split_and_classify_faces_ssi appended fragments to a shared vector inside an OpenMP loop, so output order depended on thread completion and fixed-seed booleans produced different volumes under load; per-face slots are now filled independently and flattened in face order
- CB1 build_cut_graph skips coincident analytic surface pairs (coaxial same-radius cylinders) and enforces a 10s time budget with explicit failure, cutting the coaxial case from >15 min to 0.49 s; endpoint-bisection refinement was tried and reverted because it over-split CB2 fragments (8->30)
- curved_boolean() end-to-end entry (CB1->CB2->CB3->CB4->audit) with planar x planar fast rejection; opt-in VDE_CURVED_BOOLEAN dispatch in boolean_unified
- evidence: 120 fixed-seed fuzz runs across 8 concurrent processes now 0 failures (was 5/8 processes); CBRA CB3 end-cap ON resolved; Smlib/B-Rep/boolean/CBRA/Nurbs regression 724/724 (108.52 s)
- version 1.0.429; report 491
- final summary report 484: 24 commits / 26 versions / reports 460-484; A1-A6 delivered except A4-2 (oblique-cylinder union) which is blocked by the pre-existing curved-surface boolean classification/assembly defect (legacy core and SSI core both lose faces; not an SSI-curve or duplicate-edge problem)
- reusable infrastructure documented for the future boolean refactor: cut-edge provenance, cut-edge coverage audit, face-loop audit, unify_coincident_topology, limitation tripwires, gap/tolerance measurement
- full ctest -j8: 8890/8896 passed (99.93%); the 6 failures are all in paths with zero commits on this branch (src/cae, tests/cae, tests/benchmark, test_ssi_boolean.cpp, test_boolean_benchmark.cpp) and 3 of them pass when rerun individually
- plan gains a final status + leftover-gap section; version chain 1.0.425; vde_release --check PASS
- SurfaceKnotRemoval gains error_upper_bound and bound_rigorous: the removed knot is exactly re-inserted into the candidate to restore the original knot vector, then the homogeneous control-point difference yields |S1-S2| <= max|w1P1-w2P2|/Wmin + max|wP|*max|w1-w2|/Wmin^2 (non-rational reduces to classic max|dP|; rigorous for positive rational weights)
- surface_remove_knot computes the bound before each acceptance and on rejected candidates (diagnostic fit with huge tolerance); surface_remove_knots_to_tolerance accumulates per-step bounds and takes max with final cumulative deviation
- measured: cylinder exact removal bound_rigorous with bound <=1e-9 and >= sampled deviation; curved-surface strict rejection reports bound ~0.0776 covering sampled deviation; rational sphere removable with rigorous bound; 3-knot aggregate removal bound >= max_deviation and <=1e-9
- plan A2-5 moves from deferred to done
- tests: test_smlib_nurbs_alignment 42/42 (+4); curves/surfaces/SSI/boolean/B-Rep regression 720/720 (28.02 s)
- version 1.0.424; report 483
- measure_stitch_gaps + StitchGapMeasure: open edges (edge_faces()==1) are sampled at interior points only, pairwise minimum distances give min/median/max gap, and the SMLib SmTol gap gain (1.1) yields suggested_stitch_tolerance = max(zone, 1.1*min_gap) plus a gap_escalated flag and closest open-edge pairs
- interior sampling is essential: including endpoints makes adjacent edges that merely share a corner report gap 0 for any open shell (caught during testing)
- fixture uses per-face offset i*delta so duplicate-edge gaps equal delta; same-parity faces would otherwise be exactly coincident and keep gap at 0
- measured: watertight box no open edges, suggested = zone; split box gap 0 -> min 0; gap 5e-6 < zone 1e-5 -> not escalated; gap 2e-5 -> suggested 2.2e-5 escalated
- read-only diagnostic, not consumed by stitch/import paths; only EE gaps (VE/EF/VF later)
- tests: new test_smlib_gap_measure 4/4; Smlib/B-Rep/boolean/mesh/SSI regression 1043/1043 (32.94 s)
- version 1.0.423; report 482; plan A5-2b done