Commit Graph
2506 Commits
Author SHA1 Message Date
hm da6b581c7a feat(brep): CBRA follow-up - default-dispatch A/B re-evaluation + origin/main sync (1.0.443) 2026-11-16 02:36:16 +08:00
hm db251ead95 merge: sync origin/main (d90f078b) into feature branch before 1.0.443 2026-11-16 01:26:21 +08:00
hm a5675bbf59 feat(brep): CBRA follow-up - CB1 perf, legacy-first volume gate, hard time budget (1.0.442) 2026-11-16 00:00:19 +08:00
hm 6ca5bf7445 feat(brep): CBRA-P3 - stage timings, dispatch/assembly time budgets; bounded fallback cost (1.0.441) 2026-11-15 20:09:18 +08:00
hm d5e6385e9f feat(brep): CBRA-P1b - torus-cylinder union loose branch chaining; 9 curved fixtures pass audit (1.0.440) 2026-11-15 19:04:55 +08:00
hm 898d32616a feat(brep): CBRA-P2 - strict dispatch env parsing, exact-contract isolation; env=1 A/B 4 failures cleared (1.0.439) 2026-11-15 18:08:52 +08:00
hm c5f78b7768 feat(brep): CBRA-P1 - torus-cylinder offset-axis tracing/param fixes; inter/diff pass audit (1.0.438) 2026-11-15 17:17:04 +08:00
hm d90f078b88 docs(feedback): close kernel-side status for VDE-903/1276/1277/1344..1349 (2026-11-15) 2026-11-15 16:06:10 +08:00
hm df805a3af9 feat(brep): CBRA-P0 sphere-pole degenerate run fix - sphere_sphere union/diff and sphere_cylinder inter audited (1.0.437) 2026-11-15 16:04:36 +08:00
hm 7a9902f29c feat(brep): CBRA follow-up - curved surface fixtures (sphere/torus) + default-dispatch A/B evaluation (1.0.436) 2026-11-15 15:10:33 +08:00
hm 64ba75dec6 docs(feedback): triage archived domain panels VDE-904/905/906 (VDE-1363) 2026-11-15 14:49:35 +08:00
hm 1d2f163aff feat(brep): CBRA acceptance — oblique cylinder union/intersection/difference valid, watertight, auditable (1.0.435)
- 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
2026-11-15 12:23:17 +08:00
hm a29df07652 feat(brep): CBRA hardening — trim-domain cut events, coincident-face merge, assembly cleanup (1.0.434)
- 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
2026-11-15 10:28:28 +08:00
hm 784ab60a5d docs(feedback): import CAE batch VDE-1354..1362 2026-11-15 10:17:34 +08:00
hm c4dfd22a5c docs: accept current feedback scope 2026-11-15 10:08:31 +08:00
hm 3dd4c9f75e feat(brep): CBRA CB4 hardening — original-edge canonical split and global events (oblique dangling 39->15)
- 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
2026-11-15 09:08:51 +08:00
hm cc0836b461 docs: update feedback checklist to current kernel status 2026-11-15 08:58:28 +08:00
hm d63dd61cbb docs: update feedback status after display and tetra fixes 2026-11-15 08:54:32 +08:00
hm 396cfbf956 feat(brep): CBRA CB5 — end-to-end integration and A/B (opt-in dispatch)
- curved_boolean() now runs the full CB1->CB2->CB3->CB4 pipeline with audit gate; boolean_unified gains VDE_CURVED_BOOLEAN opt-in dispatch that only replaces legacy results when the audit passes (default unchanged)
- end-to-end positive case: box(10) union cylinder(r2,h20) -> 16 faces valid watertight dangling 0 volume 1125.669654 (analytic 1125.663708); difference -> 10 faces volume 874.336316 (2e-5); new hard-assertion test CurvedBooleanEntry.BoxCylEndToEndPassesAudit
- A/B with dispatch enabled: SSIBoolean/ExactHole/BrepTest/CB4 integration 94/94 pass (27.09 s), no regressions
- remaining gaps kept explicit: oblique curved-curved union dangling 39/wt 0.44; coaxial coincident-surface merge still needs CB2 2D UV merge; default dispatch stays off
- tests: registered 8904; version 1.0.432; report 492
2026-11-15 08:37:46 +08:00
hm 8725d6f2e1 fix: full-suite 6 failures resolved + CB4 face-orientation volume fix (1.0.431)
- 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
2026-11-15 08:36:02 +08:00
hm b4f1439300 feat(brep): CBRA CB4 — canonical-split assembly; box-cylinder results now watertight
- assemble_curved_boolean: retention predicate per op (union keeps A/B non-IN, intersection keeps non-OUT, difference keeps A non-IN + B IN reversed; ON/upstream failure aborts explicitly), fragment -> TrimmedSurface(PCurve)+TopoFace, cut edges paired by BoundaryTag branch provenance, canonical split unifies event breakpoints and 3D event positions across both bodies, unify_coincident_topology welding, dangling-edge diagnostics
- measured: box(10)+cyl(r2,h20) union -> 16 faces, valid, watertight 1.0, dangling 0 (was 8); difference -> 10 faces, valid/watertight, volume 874.336316 vs analytic 874.336294 (2e-5)
- known: union mesh volume 1041.89 vs 1125.66 (topology closed; points to face tessellation/orientation contribution), coaxial coincident-surface merge and oblique CB3 ON still explicit fallbacks
- tests: test_curved_boolean_assemble 14 tests (12 PASS + 2 env-gated SKIP); CBRA subset 46 green
- version 1.0.430; report 490; plan CB4 done / CB5 in progress
2026-11-15 08:17:38 +08:00
hm 9896fc4ac3 docs: record bug33638 voxel fallback diagnosis 2026-11-15 08:12:16 +08:00
hm db279ee2b7 docs: record marching tetra boundary conformity issue 2026-11-15 08:10:47 +08:00
hm 8ea601d6d1 docs: record voxel refinement budget limit 2026-11-15 08:06:47 +08:00
hm 88538dc4ba docs: record voxel fallback coverage limit 2026-11-15 08:06:12 +08:00
hm 8bb5a18992 feat(cae): opt-in voxel tetra fallback for freeform solids 2026-11-15 08:03:39 +08:00
hm 84fd9c0dfb fix(brep): CBRA infrastructure fixes — SSI mesh-cache fingerprint, deterministic parallel collection, CB1 degeneracy guards
- 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
2026-11-15 08:02:49 +08:00
hm dfca849d48 docs: record voxel tetra fallback attempt 2026-11-15 08:01:49 +08:00
hm 076658cae3 fix(mesh): structured UV grid for trimmed cylinders closes display seams 2026-11-15 07:56:21 +08:00
hm 327eb5799a docs: record UV projection periodic wrap diagnosis 2026-11-15 07:51:04 +08:00
hm 476a687421 fix(mesh): use shared-boundary UV CDT when cylinder tessellation is out of bounds 2026-11-15 07:46:47 +08:00
hm 7764a9157d docs: record boundary retriangulation results 2026-11-15 07:42:18 +08:00
hm 6523bafb0a feat(brep): CBRA CB2+CB3 — domain splitting and fragment region classification
- CB2 split_face_domains: UV trim boundary from build_domain_polygons, cut branches stitched across trimmed patches by exact 3D endpoints (closed loops recovered), clipped to trim domain and extended along tangents, incremental polygon splitting (closed loop -> island + holed outer; open chain -> two complementary polygons), per-segment BoundaryTag provenance (branch_id/side), uv-area accounting with explicit failures
  measured (5/5): box-cyl 8 fragments on box (disc + holed outer per cap), 14 on cylinder; oblique cylinders 18/17; max area rel error <=6.661e-16; budget/empty/out-of-range rejected
- CB3 classify_face_fragments: deterministic UV grid + seeded supplements (hole-aware, boundary margin), cut-edge-adjacent enhanced votes, 3D mapping and classify_point_adaptive majority; IN/OUT/ON + confidence; all-ON/no-sample/tie -> ok=false
  measured (15/15): box corner OUT 9/9, center IN 9/9, crossing case 3/5/1 OUT conf 0.625; CB2 integration box side IN=2/OUT=6, cylinder side IN=4/OUT=10
- CB4 contract skeleton added (assembler implementation follows)
- tests: 30/30 CBRA tests in 6.25 s; registered 8890; version 1.0.428; reports 488/489
2026-11-15 06:51:58 +08:00
hm 00f386e9f8 feat(brep): CBRA CB0 — curved-boolean baseline fixtures and audit gate
- curved_boolean_fixtures(): 8 deterministic fixtures: oblique cylinders union/inter/diff, coaxial union, tangent degeneracy stress cases (box4 + r2 cylinder), non-tangent control (box10^3 + cylinder r2/h20)
- audit_curved_boolean(): validate/watertight/dangling/non-manifold, mesh volume, per-op volume necessary bounds, membership audit; acceptance is valid && watertight && membership_ok (mismatch<=1e-3) because volume bounds alone cannot catch lost union increments (all 6 failing fixtures had bounds=true)
- baseline reproduces A4-2 shape: oblique union 7 faces/12 dangling/wt0.40/V=171.3877; coaxial union V=125.6637 vs correct 188.4956 (150.8 was a typo); non-tangent box+cyl control passes (16 faces, watertight, V=1125.6637); fake union rejected with mismatch 0.953
- tests: new test_curved_boolean_baseline 4/4 (2.9 s); plan corrections (fixtures, coaxial volume typo, mandatory membership); version 1.0.427; report 487
2026-11-15 06:24:44 +08:00
hm 2f6ff5d65e feat(brep): CBRA CB1 — cut-graph normalization with domain clipping
- build_cut_graph / CutGraph: AABB face-pair prefilter, analytic exact intersection preferred (exact_intersection_multi) with robust numeric fallback, per-point domain clipping to the finite face patches, endpoint snapping statistics (merged pairs/closed/open/components) with provenance (face_a/face_b)
- key finding: analytic exact curves are intersections of unbounded analytic surfaces and can lie outside finite NURBS patches (ellipse beyond cylinder height); naive sampling produced false residuals of 4.0; projecting each point, flagging out-of-domain and splitting contiguous in-domain runs reduces worst residual to <=3.5e-15 (oblique cylinders 10 branches, sphere-sphere 4, box-cylinder 8)
- adds CBRA experiment contract include/vde/brep/curved_boolean.h + harness skeleton (CB0 to be filled next) and project plan docs/planning/curved-boolean-refactor-plan-1.0.426.md
- tests: new test_curved_boolean_topology 5/5; Smlib/B-Rep/boolean regression 232/232 (32.83 s)
- version 1.0.426; report 485
2026-11-15 06:17:43 +08:00
hm 19adf83d87 docs: record open edge snapping experiment 2026-11-15 06:16:59 +08:00
hm 8ef0e026eb docs: record trimmed cylinder seam experiments 2026-11-15 06:15:43 +08:00
hm 8d78e358ee fix(mesh): reject out-of-bounds display tessellation output 2026-11-15 06:12:02 +08:00
hm ed3f476f26 docs: SMLib alignment final completion report (1.0.400 -> 1.0.425)
- 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
2026-11-15 00:04:36 +08:00
hm bf96e24cc2 docs: record circle/arc sampling unification attempt 2026-11-14 23:38:34 +08:00
hm cd01fca78b docs: record full-circle vs arc display sampling mismatch 2026-11-14 23:37:01 +08:00
hm 4ea899fab2 docs: consolidate remaining kernel gaps 2026-11-14 23:36:10 +08:00
hm 8ee51fcfc7 docs: record cylinder boundary vertex offset on corpus plate 2026-11-14 23:34:52 +08:00
hm 071474299d docs: record trimmed cylinder UV-CDT prototype result 2026-11-14 23:31:56 +08:00
hm a8fb447d42 test(brep): cylinder side face split keeps volume 2026-11-14 23:26:30 +08:00
hm fb0d97d385 feat(curves): SMLib alignment A2-5 — proven error bound for surface knot removal
- 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
2026-11-14 23:26:07 +08:00
hm d668c64366 docs: record display mesh open edge vs weld tolerance 2026-11-14 23:25:42 +08:00
hm 368d118e9c feat(brep): SMLib alignment A5-2b — stitch gap measurement with SMLib gap gain
- 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
2026-11-14 23:22:10 +08:00
hm 2b6af1db01 fix(brep): rebuild split face shell and match coplanar edges geometrically 2026-11-14 23:18:40 +08:00
hm 3e85d6f0f0 fix(curves): robust SSI overlap dedupe via point-to-segment for short fragments
- dedupe_overlapping_curves: short fragments (<=12 points) now tested against the longer curve's polyline segments instead of its discrete sample points; with 254-point long curves and ~0.04 sample spacing vs eps=1e-3 the old test never matched, leaving coincident fragments in place
- restricting polyline distance to short fragments is required: applying it to all pairs degraded sphere-sphere robust SSI from 2 curves to 14 (short segments of adjacent branches wrongly dropped and stitching regrouped)
- measured: oblique equal-radius cylinder surfaces 9 curves (1 main + 8 fragments) -> 1 curve (20 points, two-surface residual 1.8e-15); sphere-sphere stays 2 curves
- added VDE_SSI_ROBUST_PAIRS experiment: retry robust entry when numeric SSI yields >12 curves for a face pair (analytic exact path unaffected)
- root cause chain for A4-2 updated: oblique cylinder boolean failure is downstream in face classification/assembly (legacy core keeps only one cylinder's volume for coaxial union; SSI core has 24 faces/48 dangling edges), not in SSI curves
- tests: test_smlib_nurbs_alignment 38/38 (+1); Nurbs/Smlib/SSI/boolean/B-Rep regression 684/684 (26.60 s)
- version 1.0.422; report 481; plan A4-2 root-cause chain updated
2026-11-14 23:17:24 +08:00