hm
295414535f
feat(kcp): Wave 18 - B1 clean / region-graph convergence gates, assembly golden-group bridge, exact precision calibration, CBRA UV memo, coverage enforce, docs-claims assets (1.0.485)
2026-11-21 20:01:17 +08:00
hm
f1c945619b
merge: W104 B1 residual root-cause fix (orientation-undefined faces, scoped exemption); dual-gate trade-off matrix into 1.0.485
2026-11-21 19:15:34 +08:00
hm
95c96ae218
feat(kcp): Wave18 W104 orientation-undefined degenerate-face exemption + double-gate merge evaluation
...
- add opt-in W104DegenerateExemptScope + VDE_W104_DEGENERATE_EXEMPT (env+scope double gate) in brep_validate; exempt faces whose loops are not aligned with the face normal (orientation undefined), not just zero-area faces
- scope exemption to W98 finalize repair hook (brep_boolean.cpp) and quality orientation scan (boolean_quality.cpp) to keep default/core union results bit-identical
- fix residual same-direction edges e4/e106 root cause (f1/f47 loop plane perpendicular to face normal; newell_dot ~ -7e-16/-1.7e-15)
- 7 new gtests in test_b1_seam.cpp (env gate, Newell criterion, no real-flip masking, default path bit-identical, candidate root-cause, W98 hook accept, W98/W99/W104 merge matrix)
- notes: docs/planning/wave18/b1-notes.md (KPI table, double-gate honest matrix, trade-off matrix, minimal rollback set, repro commands)
- measured: default KPI DIFFCOUNT=0, CBRA DIFFCOUNT=0, B5 4/4 d1c875b2322e097d, ctest 157/157; double gate NOT achieved (clean 0/12; snap_clip audit unmovable by W98/W99/W104)
2026-11-21 19:15:09 +08:00
hm
f86a2dacff
merge: W105 opt-in stitch-bridge/audit-relax unlocks body20 end-cap seam; golden subset [2,9,15,20] fused into 1.0.485
2026-11-21 19:13:31 +08:00
VDE Wave18 cp18-rg
1a0ec5e148
feat(brep): W105 opt-in stitch-audit relax + bridge retry unlocks body20 end-cap seam
...
202-body golden group subset [2,9,15,20]: whole group status=fused valid=1 wt=1.0 (body20 flips failed->fused).
- SSIRegionGraphOptions: w105_relax_stitch_audit/w105_diag + SSIStitchStats::w105_relax_used (geometry gates unchanged: valid/watertight/dangling/nm revalidated)
- AssemblyFuseOptions: region_graph_w105_stitch_bridge/stitch_relax/diag + env VDE_W105_STITCH_BRIDGE/STITCH_RELAX/DIAG
- assembly_fuse.cpp: bridge retry after first region-graph failure (allow_on_fragments + gap growth), [W105BRIDGE] diag
- ssi_boolean.cpp: rg_stitch relaxed-audit acceptance after normal audit, before weld fallback, [W105STITCH] diag
- tests: 6 new gtests + gated W105GoldenSubsetProbe (VDE_ASM_W105_PROBE) + 202-body default-counts guard
- gates green: CBRA 18-line DIFFCOUNT=0, B5 digest d1c875b2322e097d, W81 fp 33115A50..., ctest 995/995, 202-body counts unchanged
- docs/planning/wave18/rg-notes.md: evidence, gates, rollback, honest boundary (7-body E6 stalled on body24 pair)
2026-11-21 19:12:10 +08:00
hm
24b1d9e031
feat(brep): W106 exact difference precision claim + measured calibration (Wave 18)
...
W106 = Wave 18 / cp18-exact. 支持域复核 + 把精度承诺从经验值升级为可测标定表 + 两个闭式体积 oracle + env-gated 外推候选. 默认路径零行为变化 (brep_boolean.cpp 未改).
- 新增 exact_difference_precision_claim(): 4 档承诺 (kRejectedOutOfDomain / kRejectedUncertified / kCertifiedVolume 1e-6 runtime-enforced / kValidatedRepresentation no-volume-promise), 只读且与 brep_difference_exact 同源门; 新增 exact_pcurve_tolerance() 尺度相对口径配方 (默认绝对 1e-3 不变).
- 新增闭式 oracle: C0 box minus parallel cylinder overlap (box-cyl 直通/盲孔/内腔升级为运行时认证), C0b box minus strictly-contained analytic primitive / pure-planar body; 盒-圆柱 direct 分支接入 certify.
- 标定矩阵 (measured, 12 rows): certified 子域 worst 2.1e-8 vs 1e-6 gate (48x margin); 不可承诺 1e-9 (C3 cone-host legacy volume-integration error); representation 子域实测 3.5e-10 仅监测; p-curve residual <=3.2e-13, residual*boundary <=5.3e-11.
- env-gated 外推候选 (b): VDE_W106_COAX_CYL_HOST=1 时同轴圆柱宿主 + 共轴多段刀具走闭式轮廓积分认证, 实测 5.9e-12; 默认 nullopt 保持.
- tests: 新增 ExactPrecisionCalibration 8 tests (claim 表钉住 / 认证矩阵 / 表示层无承诺 / 拒绝诚实性 / 残差x边界长 / 尺度容差配方 / 表示无关性 / env-gated 圆柱宿主候选).
Gates: CBRA 18-line DIFFCOUNT=0 BYTE_IDENTICAL=True; B5 pass=4/4 digest d1c875b2322e097d; directed ctest 81/81 passed 0 failed (default + VDE_CURVED_BOOLEAN=1); full oracle suite 82/82.
2026-11-21 19:03:42 +08:00
hm
993553c60a
feat(kcp): Wave 17 - B1 residual root cause, region-graph seam opt-ins, interop depth, perf convergence, CI standing regression, docs-claims maintenance (1.0.484)
pr-quality / static-gate (workflows + docs claims/index + coverage plan) (push) Canceled after 0s
pr-quality / coverage-gate (core-pr measured baseline, opt-in) (push) Canceled after 0s
pr-quality / fast-gate (build -> core-pr tests -> determinism) (push) Canceled after 0s
2026-11-21 17:58:59 +08:00
hm
8259524d6c
merge: W98 shell repair opt-in, debris-shell removal, honest B1 residual root cause into 1.0.484
2026-11-21 17:24:19 +08:00
hm
533483e8cb
feat(brep): W98 gated debris-shell repair + degenerate-face root-cause evidence (B1 clean residual v3)
...
VDE_W98_SHELL_REPAIR gates a finalize-time repair: drop isolated <=2-face debris shells via a bit-faithful face-subset clone, then strict orientation fix + validate + volume band; reject rolls back to the original body. Default path is env-off and bit-identical (44-case B1 KPI DIFFCOUNT=0). Adds 8 tests and documents upstream root cause: residual same-direction edges come from zero-area degenerate faces produced by fragment assembly.
2026-11-21 17:23:43 +08:00
hm
d14be9cc4a
feat(brep): W99 region-graph seam ownership opt-ins (ownership-on-IN + keep-all-A + [W99CLS]) and gated golden-subset probe
2026-11-21 16:57:12 +08:00
hm
6fd4ce783e
feat(kcp): Wave 16 - B1 clean real-intersection closure, region-graph end-to-end, SAT/STEP interop depth, SSI seed pruning, real runner/coverage v3, docs-claims self-heal (1.0.483)
2026-11-21 15:41:34 +08:00
hm
d5d94df3c9
Merge branch 'feat/kcp16-rg'
2026-11-21 15:01:23 +08:00
hm
448fb70e2d
feat(kcp): Wave 16 - W92 B1 closed-shell consistency checker + gated quality caliber (default bit-identical)
...
- add reusable closed-shell consistency checker (include/vde/brep/shell_consistency.h,
src/brep/shell_consistency.cpp): edge-use classification (boundary / non-manifold /
same-direction / periodic-seam exempt), flip-parity BFS, Euler parity, component count,
per-component signed volume accounting; effective direction = stored loop order x
sign(loop Newell . face_normal), because stored order is the surface parameter-domain
boundary order. env VDE_W92_SHELL_CONSISTENCY (default off).
- add quality-gate-only ordered-direction caliber orientation_consistency_ordered()
(include/vde/brep/brep.h, src/brep/brep_validate.cpp), env VDE_W92_LOOP_ORDERED_ORIENT
(default off). Deliberately NOT wired into boolean construction / validate(): doing so
skips the VDE-1246 strict-fix island-split side effects and degrades the W74 candidate
branch from 58 to 88 faces (verified both ways).
- boolean_quality.cpp: gated shell-consistency gate (boundary/non-manifold/same-direction/
parity-contradictions/euler parity become the authoritative orientation verdict; default
path unchanged).
- test_b1_seam.cpp: 7 new W92 tests (checker semantics, closed primitives, imported solid
structural invariants, volume accounting + flipped face, gated quality gate, candidate
branch debris-defect detection; candidate tests gated by VDE_W92_TESTS).
- docs/planning/wave16/b1-notes.md: mechanism, gate data tables, honest unmet analysis
(clean remains 0/12; 58-face candidate carries negative/zero-volume debris components),
W74 branch nondeterminism {58,88}, upstream clues.
Gates: CBRA 18-line byte-identical (DIFFCOUNT=0); B5 pass=4/4 digest d1c875b2322e097d;
default 44-case B1 KPI DIFFCOUNT=0 vs W86 (import 6/6, clean 0/12, perturbed 0/24);
directed ctest 64/64 passed.
2026-11-21 14:59:55 +08:00
hm
628f837d3a
feat(kcp): Wave 16 W93 - region-graph open-chain stitching fallback (opt-in, WIP); body20 negative evidence (task-176)
...
Adds SSIRegionGraphOptions::open_chain_pairing (default false) and a post-ladder stitch fallback in rg_stitch: snap dangling endpoints within pair_tol, heal_gaps, then 3x heal_dangling_edges/heal_merge_edges, weld_open_curved_edges + compact_used_topology, accepted only when validate/audit pass. AssemblyFuseOptions::region_graph_w93_open_chain_pairing + env VDE_W93_OPEN_CHAIN=1. Default path unchanged (gates re-verified: 18-line CBRA DIFFCOUNT=0, B5 digest d1c875b2322e097d, W81 fingerprint 33115A50 unchanged). Body20 probe: dangling 27->24 (snapped_pairs=2), still invalid; A chain total 187.521 vs B 72.506 refutes the coincident open-chain hypothesis - root cause points to CB3 classification layer.
2026-11-21 14:43:43 +08:00
hm
15279baee0
feat(kcp): Wave 16 W93 - region-graph fully contained difference cavity (opt-in), coincident ownership e2e test, targeted gates (task-176)
2026-11-21 14:23:54 +08:00
hm
b8f47921f7
feat(kcp): Wave 15 - B1 clean v2 caliber fixes, CB4 geometry stitching, assembly seam ladder, stability gates, runner/coverage CI, docs-claims 40/40 (1.0.482)
pr-quality / static-gate (workflows + docs claims/index + coverage plan) (push) Canceled after 0s
pr-quality / coverage-gate (core-pr measured baseline, opt-in) (push) Canceled after 0s
pr-quality / fast-gate (build -> core-pr tests -> determinism) (push) Canceled after 0s
2026-11-21 13:50:13 +08:00
hm
806fa24a0e
merge: W88 assembly seam closure - CB3 residual ladder + CB4 fragment contract wiring + shared-edge merge (opt-in) into 1.0.482
2026-11-21 13:14:26 +08:00
cp15-asm
2b11f883ea
feat(kcp): Wave 15 W88 - CB3 ON residual ladder, CB4 fragment contract pass-through, seam shared-edge merge + tolerance ladder (opt-in, defaults off)
...
W88 diagnostics (VDE_W88_DIAG): [W88RG]/[W88CLS] per-fragment CB3 residual, [W88STITCH] per-pass accept/rollback, [W88PAIR]/[W88GATE] per-pair and fused gate.
Opt-in levers (all default off, default path bit-identical):
- on_residual_resolution: 3-level deterministic residual ladder in rg_classify_body
(relaxed vote -> same-face neighbor parity -> partial coincident ownership);
honest failure kept when no evidence.
- fragment_domain_contract: pass W81 CB4 fragment-domain contract into rg_stitch
assembler (previously never set: stale CB3 summary rejected valid regrouped domains).
- seam_shared_edge_merge: heal_merge_vertices/dangling_edges/merge_edges + weld +
compact + valid/watertight/audit acceptance, smallest-tolerance attempt first.
- seam_tolerance_ladder: 1e-3..5e-1 retry ladder (2*gap pass over-welds 37k vertices).
- 5 unit tests + env-gated golden 7-body probe (VDE_ASM_W88_PROBE=1).
Evidence: golden group members 1-2 fuse; body20 cap still blocked by tangential/ON
fragment (8:8 tie) and unpaired 27-edge cap seam (needs open-chain pairing next wave).
Default 202-body corpus, CBRA 18-line sha256, B5 digest, targeted ctest all unchanged.
2026-11-21 13:03:36 +08:00
hm
3ad0641cfd
feat(kcp): Wave 15 - W87 CB4 geometric seam stitching: gated twin/duplicate edge re-pairing with manifold guard (task-169)
...
W87: add env-gated twin/duplicate-edge re-pairing between domain trim and the
two-pass stitch, plus VDE_W87 diagnostics; default path is untouched.
- brep_heal: new 5-arg unify_coincident_topology(..., bool manifold_guard);
guard merges same-signature edges only when the union of distinct incident
faces is <= 2, otherwise keeps the twin edges split (avoids >=3-face
non-manifold edges). Stats expose twin_edges_split/merge_blocked_by_face_count.
Existing 4/3/2-arg overloads delegate to impl(..., false): bit-identical.
- curved_boolean_assemble: gated VDE_W87_EDGE_REPAIR=1 path in the weld block
(guarded weld -> split non-manifold edges -> repair dangling edges into twins
(union<=2) -> normalize -> pair dangling twins); VDE_W87_DIAG=1 prints
[w87diag] stage snapshots (edge face-count histogram, dangling endpoints,
twin groups, UV out-of-range, accept/rollback notes).
- tests: new test_curved_boolean_w87.cpp (7 fast + 1 gated VDE_W87_SLOW=1).
Evidence (task-169): snap_clip default 72/0.459627/74/13 unchanged; repair path
nm 13->0 (wt 0.459627->0.522222, dg 74->86); W75 gates unchanged with repair
(87/0.580769/109/0). 17-fragment pin 33115A50... unchanged; CBRA 18-line
DIFFCOUNT=0; B5 4/4 d1c875b2322e097d; targeted ctest 147/147 pass; 202-body
groups=194 fused=0 stitched=1 single=32 ok=true.
2026-11-21 13:01:54 +08:00
hm
adec3c1b34
feat(kcp): Wave 14 - B1 cross-type seam pairing, CB4 fragment contract, assembly seam closure, runner offline equivalence, coverage v3, docs governance v6 (1.0.481)
2026-11-21 12:06:14 +08:00
hm
b2524761d9
merge: integrate W82 assembly seam-network diagnosis + opt-in closure ladder (task-163)
2026-11-21 11:22:37 +08:00
hm
a8577e1c03
feat(asm): W82 seam-network diagnostics and opt-in closure strategies
...
- assembly_fuse: add W82SeamSnapshot diagnostic aggregation (branch events/open
chains/floating faces + per-pair failure reason) in region-graph path; failures
now carry [W82 seam network: ...] evidence after the W76 UV retry note.
- assembly_fuse: add opt-in seam closure ladder (env VDE_W82_SEAM_CLOSURE):
endpoint snapping, open-chain bridging, shared-edge merge retries against
SSIRegionGraphOptions, plus coplanar-seam unify+heal closure; every result is
accepted only via BodyMetrics valid||(watertight && dangling==0) + 2% volume
band, default path stays bit-identical.
- assembly_fuse.h: 8 new options (all default off) with env overrides.
- tests: 5 default-run unit tests + VDE_ASM_W82_PROBE corpus probe (6 new).
KPI: b1 group fused>=1 not achieved (fused=0). Hard blocker is CB3
'1 tangential/ON fragment unresolved' plus CB4 classification(B) ON=1 early
return; assembly-side tolerances (snap eps to 0.1, bridge growth to 100,
coplanar heal tol to 1.0) cannot close the residual seam (dangling=5).
Default 202-body baseline item-identical to W70/W76 (groups=194 fused=0
stitched=1 single=32 contacts=464 ok=true). CBRA 18-line sha256 and B5
digest d1c875b2322e097d unchanged. W81 interface needs in
docs/planning/wave14/asm-notes.md.
2026-11-21 11:20:16 +08:00
hm
37a14207d0
feat(kcp): Wave 14 - W81 CB4 fragment domain contract (env-gated stale-classification acceptance + gated 17-fragment fingerprint) (task-162)
2026-11-21 11:11:17 +08:00
hm
179137ec2f
merge: sync origin/main (CAE trim-domain scale, midsurface diagnostics, near-miss tetra refinement) before 1.0.480 push
2026-11-21 10:04:55 +08:00
hm
c267002f59
feat(kcp): Wave 13 - B1 curve-rim retention, CB2/CB4 domain contract, assembly seam closure, real runner docs, measure w>=1e4, docs claims v3 (1.0.480)
2026-11-21 10:04:13 +08:00
hm
af4f79d4a1
fix(cae): trim-domain scale, midsurface diagnostics and near-miss tetra refinement
...
VDE-1347 / VDE-1346 follow-up on the 1.0.478 real-corpus CAE baseline (250 STEP files):
- Sub-2 mm periodic-face trim domains (A17): the closed-band planarity gate used the
base-surface control-net extent (imported cylinders/cones span +/-1e6 -> 2.0 mm
tolerance), so hole walls with radius < 1 mm were classified planar, the band path
was skipped and the inner cylinder area collapsed to 0 (analytic volume +14.7%).
mesh_face_trimmed / build_face_trim_domain now use nurbs_surface_is_planar_for_trim
with the trim-loop local extent. iso7089_M1.6 inner area 0 -> 1.869248 (true
1.869026), analytic volume 4.13276 -> 3.603139 (true 3.603794); washer family 75/75.
test_measure 162 -> 164.
- Midsurface diagnostics (A18): cae::MidSurface gains additive diagnostics lines with
constant-thickness stage counts (thickness_gate/contour_gate/no_opposite/apply_fail)
and the chain-fallback code/message; failures also append a 'diagnostics:' segment to
message. The 87 mids=0 KPI files are no longer all lumped as chain_failed.
test_vde1346_cae_preprocess 17 -> 21 (17 existing cases bit-identical).
- Near-miss volume refinement (A19): in auto_size mode a 2-manifold fallback mesh with
volume error in (2%, 35%] is retried recursively at half the target size (<=3 levels,
convergence gate < 0.7x, watertight pre-check), with max_size_used reporting the size
actually used. HEAD_FRONT 0.030272 -> 0.000571823, FOOT 0.057298 -> 0.000175378,
wheel axis2 0.101637 -> 0.0182983; explicit max_size is unaffected.
test_fea_mesh 83 -> 86.
Integration: full Release build OK; 23 suites 879 passed / 0 failed; PR gate 1011/1011
(90.98 s). Upstream test_b1_kpi_regression needed an MSVC __VERSION__ guard to compile;
its DefaultSuiteNoDegradation failure is a pre-existing stale baseline (boolean kernel
changed after the baseline was generated) and is not caused by this batch.
250-file KPI (baseline 1.0.478): fixed-size 63/86 unchanged (A17 fixes the analytic
reference; fixed-size prism sampling stays chord-based); auto-size tet_ok 158 -> 168
(72.4%), rejected 68 -> 61, 0 regressions, 919 s (baseline 927 s). New passes: 4 A19
refinements (HEAD/HEAD_FRONT/FOOT/wheel axis2), 2 A17 bolts, 3 sub-2 mm washers.
Mid-surface KPI: the 87 mids=0 files now break down as 35 single-face sheets, 45
low-face solids (thickness/no-opposite gate), 5 multi-feature and 2 complex parts,
all chain_code=e_not_shell_body - i.e. none are thin-wall shells.
Docs: new wave10 report, KPI doc section, remaining-gaps closing record, feedback status,
api-reference-mesh (refine retry + cae_preprocess diagnostics), VDE-1346/VDE-1347 updates.
2026-11-21 00:31:28 +08:00
cp13-cb2
f4dee299be
W75 (P0): CB2->CB4 domain contract - extended-piece tag, A/B same-source pairing, face-relative UV tol, arc-length event merge
2026-11-21 00:11:20 +08:00
hm
7cf420d8e3
feat(kcp): Wave 12 - B1 analytic trim alignment, CB4 rim same-source, region-graph coincident ownership, full B1 KPI nightly, extreme-weight measure guards, docs drift guard (1.0.479)
pr-quality / static-gate (workflows + docs claims/index + coverage plan) (push) Canceled after 0s
pr-quality / coverage-gate (core-pr measured baseline, opt-in) (push) Canceled after 0s
pr-quality / fast-gate (build -> core-pr tests -> determinism) (push) Canceled after 0s
2026-11-20 23:22:25 +08:00
hm
39935d38a5
W12/W70: region-graph coincident-face explicit ownership + conservation (opt-in)
...
实现 W70(task-149):\n- SSIRegionGraphOptions/AssemblyFuseOptions 新增 coincident_ownership 等 opt-in 字段(默认关,默认路径零行为变化)\n- ssi_boolean.cpp 区域图分类层:同向重合面片对检测(dot>=1-1e-9、共面容差、对方面域投影采样)、union 语义 A 侧保留/B 侧丢弃单拷贝归属、12x12 密集采样面积守恒检查(部分重叠 5% 容差 + 1e-9*scale 严格路径),失败诚实回退\n- assembly_fuse.cpp fuse_group_region_graph 接线 + [RGCODIAG] 诊断(VDE_RG_COINCIDENT_DIAG)\n- 新增 4 个单测 + 1 个 env-gated W70CoincidentProbe;门禁全绿(CBRA 18 行一致、B5 4/4 d1c875b2322e097d、定向 ctest 63/63)\n- 202-body 实跑:member 1/2 所有权生效且守恒 ok;member 3(body20 face7)仍为 seam 未闭合导致的跨边界片段,fused 仍 0(诚实记录,根因链见 notes)
2026-11-20 22:39:53 +08:00
hm
7f110cc633
feat(kcp): Wave 11 - B1 clean phase 2, CB2 UV normalization, same-normal cap union, B1 KPI guard, rational span area, docs governance (1.0.478)
pr-quality / static-gate (workflows + docs claims + coverage plan) (push) Canceled after 0s
pr-quality / coverage-gate (core-pr measured baseline, opt-in) (push) Canceled after 0s
pr-quality / fast-gate (build -> core-pr tests -> determinism) (push) Canceled after 0s
2026-11-20 21:48:21 +08:00
cp11-asm
a80da85c17
feat(brep): W64 same-normal cap union merge + contact-aware fuse order (opt-in)
2026-11-20 21:05:31 +08:00
hm
fb9bfa9f9f
feat(kcp): Wave 10 - B1 clean loop, CB3 assembly audit, curved coplanar clip, docs-claims gate, coverage v2 baseline, measure per-span Gauss (1.0.477)
2026-11-20 19:39:07 +08:00
hm
2aa759e958
merge: sync origin/main (CAE adaptive tetra + periodic closure, wave8 re-verification docs)
2026-11-20 17:27:28 +08:00
hm
e4398584bd
feat(kcp): Wave 9 - B1 rim same-source, coplanar clip, shell thin-wall closure, PageHeap nightly, coverage v2 gate, SAT roundtrip (1.0.476)
2026-11-20 17:27:17 +08:00
hm
52d25b06de
merge: W55 SAT text writer + NURBS round-trip KPI (task-131)
2026-11-20 16:32:43 +08:00
cp9-io
bff4ddd495
feat(kcp): Wave 9 - W55 SAT text write subset (plane/analytic quadric/NURBS) + STEP roundtrip KPI
...
Add write_sat_text/write_sat_text_string emitting real ACIS SAT text records (not VDEBLOB payload): single body/lump/shell, deduped vertices/edges/curves/surfaces, plane + analytic cylinder/sphere records with parameter re-verification (fallback to exact NURBS blocks), NURBS surface/curve exact embedded blocks, 2-edge closed loop exact topology refinement, orientation encoded via parameterization direction (face.reversed), explicit skip reasons for out-of-subset faces. Add 5 SAT-write rows to format_capability_ex(). Add 10 Wave9SatWrite tests incl. real STEP STEP->VDE->SAT->VDE KPI (corpus/real, env VDE_KCP9_IO_KPI_DIR). Baseline test_industrial_formats: 161 tests/19 suites (160 passed + 1 skipped); filtered ctest 124/124 passed; CB4 18-line gated byte-identical.
2026-11-20 16:32:21 +08:00
hm
815eea9ca6
merge: W51 coplanar clip 2D + assembly region-graph wiring (task-127)
2026-11-20 16:26:08 +08:00
hm
75f2bab76a
feat(kcp): Wave 9 W51 - coplanar/overlapping face clip + seam reconnect for assembly region graph (opt-in)
...
- new src/brep/coplanar_clip_2d.{h,cpp}: clean-room assembly-side coplanar
analysis (planar faces with straight boundary edges, opposite normals,
coplanar within tolerance, 2D partial overlap via in-repo
vde::boolean::boolean_2d), remainder rebuild preserving curved edges /
trimmed surfaces, seam weld via unify+heal. VDE_COPLANAR_DEBUG diagnostics.
- assembly_fuse: region_graph_coplanar_clip / region_graph_coplanar_tolerance
options; fuse_group_region_graph tries clip+weld before each region-graph
pair union, accepts only valid/watertight/volume-conserving candidates and
falls back honestly otherwise. Only active when use_region_graph=true;
default path unchanged. VDE_ASM_COPLANAR_DIAG diagnostics.
- tests: new tests/brep/test_coplanar_clip.cpp (10 cases); CMake registration.
- docs/planning/wave9/asmrg-notes.md: implementation, per-member corpus
decision table, 8-gate evidence (fused KPI honestly not met; body20 root
cause: planar cap faces with curved boundary edges are skipped), repro.
2026-11-20 16:25:29 +08:00
cp9-rim
a4fd43201f
W50 (KCP-1.0 Wave 9): A/B rim same-source opt-in for shared seam path
...
- brep_boolean.cpp: new env-gated w9_rim_same_source_on() (VDE_W9_RIM_SAME_SOURCE,
default off); in w26_seam_loops_from_keep curved A-rim edges connect their real
endpoints (chord) instead of 16-segment sampling, so B-side planar-region
vertices are 1:1 with A-rim endpoints; union/intersection seam path also runs
unify_coincident_dangling_edges (arc-vs-chord pair merge); medium non-box models
reach the seam candidate (previous task-86b perf guard returned legacy first);
residual dangling/orientation healed once more under the same switch.
- ssi_boolean.h: public w9_rim_same_source_enabled() probe.
- tests/brep/test_b1_rim_consistency.cpp: 7 new cases (switch contract, default-off,
planar/sphere bit-identical arms, gated snap_clip union real-corpus arm) + CMake
registration.
- docs/planning/wave9/rim-notes.md: root cause, changes, gate evidence, repro.
Default path unchanged (all effects are opt-in behind VDE_W9_RIM_SAME_SOURCE and
the existing VDE_W32_SSI_SEAM/VDE_W26_SHARED_SEAM seam switch).
2026-11-20 16:12:24 +08:00
hm
3b4973b9e2
feat(cae): adaptive tetra size, periodic-body closure fixes and washer regressions
...
Auto size (A15):
- TetMeshParams::auto_size / auto_size_wall_ratio / auto_size_min / auto_size_max
(additive; explicit max_size>0 path bit-identical). Estimate wall proxy t=2V/S from a
coarse tagged tessellation, size=clamp(0.5t, span*0.5%, span*5%), raised when the
Delaunay point budget demands it; FEAMesh::max_size_used reports the derived value.
- Prism fast path: closed circular edges are sampled from polyline arc length instead of
endpoint chord, which was always zero for full circles (fixed 8 segments, cap area
error -9.88%) -- this alone explains the constant PlainWasher volume error.
Periodic-body closure (A16):
- brep_validate Euler count no longer skips closed self-loop edges blindly; degenerate
detection samples the curve arc length, so washers report chi=0/valid instead of odd
Euler (5) and watertightness 1.
- cae/fea_mesh.cpp brep_boundary_is_closed counts total edge uses: seam edges used twice
inside one face loop are closed, only uses<2 are open; closed periodic bodies now take
the solid-angle fallback instead of a bogus boundary fill.
Tests:
- test_fea_mesh 82 (80 pass + 2 env skip): AutoSize 6 cases (thin plate, determinism,
additive, clamps, PlainWasher M42, HEAD_FRONT), washer diagnostics case renamed.
- test_step_import 106: StepImportWasherFamily (52 ChamferedWasher closed B-Rep,
edge-use histogram, chi=0, volume vs revolved analytic <=2%; PlainWasher sampling).
- test_brep_validate 49, test_brep 96, test_measure 162 all pass.
250-file CAE KPI: fixed max_size=5 tet_ok 23 -> 34 (washer fix), auto size 34 -> 102
(44.0%); HEAD_FRONT volume error 12.65% -> 3.33%; ChamferedWasher auto mode 13 files
regress to volume/scale_guard (documented limitation).
Verification: full Release build exit 0; 23 suites 869 passed / 0 failed; PR gate
987/987 (79.69 s).
2026-11-20 15:56:22 +08:00
hm
f41bcab140
feat(kcp): Wave 8 - CB3 assembly fix, region-graph fused, spline shell closed loop, fuzz UAF fix, coverage v2, SAT spline (1.0.475)
2026-11-20 15:25:00 +08:00
hm
2ba3a8169f
merge: integrate W46 NURBS shell offset tolerance closed loop (task-121)
2026-11-20 14:56:57 +08:00
hm
a46a7a2473
feat(kcp): Wave 8 W46 - NURBS shell offset tolerance closed loop
...
- BrepShellReport: fit_tolerance / max_rel_error / iterations (additive)
- kSpline offset surface: W41 same-space collocation kept only when independently
validated exact (torus/circle zero-fit); otherwise tolerance closed loop:
ruled fast path (collocated offset curve + constant-translation far edge,
dense independent validation, ncp 33/66/132 retry) or general W17
fit_surface_to_tolerance with independent validation; honest reject with
diagnostic when dense retry cannot reach tolerance
- offset edges: W41 rebuild validated first, then collocation with dense check;
fitting parameter range refined to inner-vertex projections (fixes vertical
seam edges spanning [t,H-t]); spline+spline seam points solved by two-constraint
Newton; W17 curve-fit fallback
- brep_shell_ex: aggregate closed-loop metrics; default (non-ex) path unchanged
- tests/brep/test_shell_draft_curved.cpp: 6 new W46 cases (torus same-space
report, ellipse closed/open closed loop, circle prism, thin closed honest
residual, real STEP corpus curved part); W41 ellipse thresholds 2e-2 -> 1e-6
(closed) / 1e-5 (open); CMake injects TEST_REAL_CORPUS_DIR
- evidence + notes: build/kcp8_evidence/shell/, docs/planning/wave8/shell-notes.md
Results: ellipse prism closed rel 5.020e-03 -> 9.641e-07, open 6.078e-03 ->
1.187e-07, torus/circle unchanged exact (2.583e-10 / 3.305e-11); thin t=1.0
honest residual 1.209e-06 (target 1e-6 not met, documented). 25/25 shell tests,
CBRA 18-line byte-identical, B5 4/4 digest d1c875b2322e097d.
2026-11-20 14:55:49 +08:00
hm
b4f3d9a08a
feat(brep/asm): W45 region-graph coincident-face merge + honest tangent union + weak-ON resolution
...
KCP-1.0 Wave 8 W45 (task-120, cp8-asmrg)
- SSIRegionGraphOptions: 新增 merge_coincident_faces(默认 false=W22 原型)
与 coincident_face_tolerance;复用 W11 fuzzy 面对识别/合并机制,在
ssi_boolean_region_graph 并集入口新增“当面重合合并”阶段:完全吻合的
正面贴合面(外法向反平行、轮廓一致、间隙<=tol)丢弃两侧内部壁面并
缝合成单壳,验收 valid+watertight>=0.999+体积守恒后才直接返回,否则
继续 CB1~CB4 诚实回退。
- 2b 无切割切向并集:补 valid/watertight 校验,非法壳不再静默成功。
- rg_classify_body:ON 片段弱证据两级消解(弱多数票 + 12x12 稠密重采样),
仍无证据时保持 UnsupportedOperation;新增 SSIRegionClassifyStats
::on_resolved_weak 与 VDE_RG_DIAG 诊断。
- assembly_fuse:opt-in 区域图路径打开 merge_coincident_faces;
region_graph_time_budget_ms 显式 clamp + static_cast<int>(0=内部默认)。
- 测试:区域图新增 7 个 CoincidentMerge 用例;装配区域图 6 新增 + 2 改写;
探针 direct 调用启用 merge 并输出 diagnostic。
探针矩阵:touching_face(12->10,V=2000)、chain(18->14)、stacked_cyl_exact
(12->10,V=251.33)、sheet 去重(4->2) 由失败变为验证通过 fused;overlap/
touching_edge/部分共面构型保持诚实失败回退。202-body 语料 fused=0(未达
fused>=1 目标,阻塞于成员3 partial coplanar 需面片裁剪,已记录),默认
路径与 sheet_paired=161/161 零回归。
门禁:18 行 CBRA 字节一致(2344B, sha256 B3AC...42E2C);B5 pass=4/4,
digest d1c875b2322e097d;ctest -R "Assembly|Heal|Boolean|Brep|SSI"
100% passed, 0 failed (162);证据见 build/kcp8_evidence/asmrg/。
2026-11-20 14:19:03 +08:00
hm
91ae716ede
merge: sync origin/main (graded shell thickness, Delaunay budget, trimmed_surface samples/seam) into 1.0.474
2026-11-20 12:40:35 +08:00
hm
4138ec6ee8
feat(kcp): Wave 7 - B1 trim filter, CB2 adaptive sampling, assembly region-graph wiring, curved shell/draft, fuzz UB fixes, core-plus coverage (1.0.474)
2026-11-20 12:40:11 +08:00
hm
f9175a1352
merge: integrate W40 assembly region-graph fuse wiring + honest fallback (opt-in, task-114)
2026-11-20 11:52:19 +08:00
hm
8a6a439605
feat(kcp7): W40 assembly_fuse opt-in SSI region-graph fusion path + honest fallback evidence
...
- AssemblyFuseOptions: use_region_graph / region_graph_max_faces /
region_graph_time_budget_ms / region_graph_stitch_gap_growth, defaults keep
the historical path bit-identical.
- fuse_group_region_graph(): pairwise ssi_boolean_region_graph union with
seam/loops/classification/stitch diagnostics; run_group() tries it first and
falls back to brep_union / two-pass stitch, keeping region_graph_<reason>
plus prior-attempt diagnostics. Reports and CAE JSON carry region_graph_used.
- tests: 5 new deterministic tests (opt-in path attempted, honest fallback,
default outcome unchanged, gate-failure fallback, fused body feeds CAE),
env-gated RG probe (11 configurations, prototype capability boundary),
corpus evidence switches + per-group table + kcp7 evidence path.
- Evidence (202-body corpus, default vs opt-in): groups 194/194, fused 0,
stitched 1, sheet_paired 161 unchanged; the region-graph path honestly fails
on the only multi-body group (cut-graph budget at the first pair) and falls
back to stitched; probe shows W22 prototype limits (planar ON-face
NonManifoldEdges, exact curved stacked FaceOwnershipMismatch), so fused>=1
is not reachable without fixing the prototype.
- Gates: CBRA 18-line byte-identical (SHA256 B3ACDDC6...), B5 digest
d1c875b2322e097d 4/4, ctest Assembly|Heal|Boolean|Brep 1570/1570 passed.
Notes: docs/planning/wave7/asm-notes.md.
2026-11-20 11:37:35 +08:00
cp7-b1
8c801ea030
KCP-1.0 W7 W38: filter SSI curves to face trim domain (B1 seam, opt-in)
...
W38 B1: real-STEP boolean seam漏切. Diagnose with VDE_W38_DIAG: W32 attribution 'A pass missing 2/30' is falsified (only 2 faces truly cross cutter, both split); real failure is B-pass carve explosion (781/788 fragments, ceiling 512) caused by SSI curves on enlarged imported parameter domain (fake intersections outside A face trim). Fix: env-gated VDE_W38_TRIM_FILTER=1 filters SSI curve points to the opposite face trim domain (even-odd test, longest in-domain run), <4 points treated as no intersection. Default off; snapshot_clip union dangling 516->71, clean-suite dangling total 4029->1366; B1 clean still 0/12 (A/B rims remain non-coincident, next step). Gates: 18-line CBRA DIFFCOUNT=0, ctest targeted 384 tests 0 failed, B5 4/4 digest unchanged, 6 new tests registered.
2026-11-20 11:37:32 +08:00
hm
3c515d498e
feat(cae): graded shell thickness, Delaunay complexity budget and degenerate seam fix
...
pr-quality / static-gate (workflows + docs claims + coverage plan) (push) Canceled after 0s
pr-quality / coverage-gate (core-pr measured baseline, opt-in) (push) Canceled after 0s
pr-quality / fast-gate (build -> core-pr tests -> determinism) (push) Canceled after 0s
- shell_mesh (VDE-1346 Wave6): per-vertex thickness field (nearest-3 IDW) ->
node/element thickness for Plane/Cylinder patches; mid-side nodes use
0.5*(ta+tb); uniform patches stay bitwise identical (1e-12).
test_vde1360_shell_mesh 15/15 (+3), test_vde1346 17/17.
- delaunay_3d (VDE-1347 Wave6): additive Delaunay3dBudget/Delaunay3dStats +
budgeted overload (deterministic counting, single-arg overload bitwise
unchanged); fea_mesh general path uses created/point 300 + base 1e5 main
guard, containment 5e8 / live 4e5 / created 1e8; aborted returns empty mesh
plus structured Chinese diagnostic. trj10 aborted in 3.18 s (was >10 min
extrapolated), rod aborted in 4.89 s (was >120 s); normal parts 30-34
created/point (>=9.6x headroom). test_fea_mesh 74 (72 pass / 2 skip).
- trimmed_surface: line p-curves sample 2 points instead of 101 and polygon
reduction is a single O(n) stack pass (was O(n^2)) -> trj7 degenerate seam
face face_area >7 min hang -> 205.9 ms. test_trimmed_surface 35/35 (+1),
test_real_corpus_feedback 11/11 (+1).
- docs: Wave6 report, remaining-gaps/feedback-status/README/api-reference-mesh,
VDE-1346/VDE-1347/VDE-902 sections.
Verification: Release full build FULLBUILD_EXIT=0; 23 suites 857 passed /
0 failed (INTEGRATION_EXIT=0); PR gate 958/958 (82.09 s).
Merge re-verification on 1.0.473 (origin/main 1b759734 , no conflicts):
MERGEBUILD_EXIT=0; 23 suites 857 passed / 0 failed; PR gate 972/972 (70.03 s).
2026-11-20 10:45:05 +08:00