25 Commits
Author SHA1 Message Date
hm 0ef682a00b feat(cae/brep): Wave15 explicit-size refinement retries, analytic volume fixes, auto surface-convergence gate
A29: extend deterministic halving/surface-lock retries from auto-size to host explicit max_size>0 and solid-angle fallback; 18 fixed-window volume rejects + Pin x2 now mesh_ok (fixed 250: 146 -> 166/232, 0 reversals).

A30: fix period band trim domains (meridian_band_rect_domain), planar misclassification via trim-local scale, ring-point ruled band fallback, dropped_faces diagnostics: SpringEnd analytic/mesh 0.5337/0.1737 -> 1.4590/1.4379 (ratio 3.07 -> 1.015), Bolt body0 6.858 -> 8.029; all red-part analytic volumes bit-identical.

A31: auto surface volume convergence gate (auto_size && initial mesh watertight && |surface-body|/body>1.5% -> defl x0.5 up to 8 levels, target_size kept, trusted reference guard, stall guard) restores Pin/Housing bit-identically and fixes d35 via halving-first explicit surface lock; auto window 185/44 unchanged with 12 re-baselined tets and 0 reversals.

Tests: test_fea_mesh 100 (98 pass + 2 env skip, +5 explicit-size, +3 auto-gate, HAU61 threshold re-anchored 0.35 -> 0.02); test_measure 170; 23 suites 902 passed / 0 failed; PR gate 1022/1022 (83.04 s); four-window KPI fixed 166/59, auto 185/44, band fixed 7/1, band auto 8/0.
2026-11-22 01:25:45 +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
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 40a2c27f9f feat(cae): general Delaunay boundary recovery, free-form tetra and nonuniform midsurface fallback
Wave 5 (agent team A11/A12) closes remaining-gaps ②③ and ①:

- General Delaunay (src/cae/fea_mesh.cpp): replace the old VDE-1241 pseudo-boundary
  culling (dropped faces without refilling) with "faces used once are the boundary"
  plus 2-manifold repair. Add a watertight gate (open-edge count, forced shared-edge
  tessellation retry, boundary fill with volume plausibility), B-Rep edge-face closure
  test, ray-parity inside/outside classification, deterministic jitter attempts with
  degenerate-tet dropping, excess-face repair and edge-ring repair.
  L-bracket closed/err +0.2889% (22757 elems, 2720 ms), plate +0.2509% (2615 ms),
  box plate2 +0.8439%; AP242 open tessellated shell (bug33638) rejected with a
  structured diagnostic (20 open edges, 2.4 ms).
- Nonuniform midsurface (src/cae/cae_preprocess.cpp/.h): when constant-thickness
  pairing yields no patch, fall back to brep::midsurface_from_shell_body and map
  chain patches to cae::MidsurfacePatch (patch_id, loops, thickness min/mean/max,
  source faces, feature edges). box plate2.stp real part: 1 patch, thickness 2/2/2,
  shell area within 1%; synthetic wedge 2->8 mm: thickness 2/5/8 linear.

Tests: test_fea_mesh 70 cases (69 pass + 1 skip, 20.85 s); test_vde1346_cae_preprocess
17/17; test_brep 96/96; test_vde1620 8/8; test_vde1621 9/9. Integration: full Release
build exit 0; 23 suites 850 passed + 1 skip / 0 failed; PR gate 944/944 (131.60 s).

Docs: new docs/reference/agent-parallel-implementation-wave5-2026-11-20.md;
remaining-gaps ①②③ closed with records; feedback-status/VDE-1346/README updated.
2026-11-20 07:31:33 +08:00
hm fd775ee5cb feat(cae): periodic node pairing, beam mesh and Nedelec edge mesh handoff (VDE-1619/1621/1620)
Wave 3 of the feedback implementation plan (3 parallel agents + integration);
completes the "not implemented" list of docs/reference/feedback-audit-2026-11-19.md.

VDE-1619 (P2): pair_periodic_nodes -- translational/rotational(Rodrigues)/mirror
1:1 pairing of boundary face nodes; greedy nearest with ambiguity rejection
(whole request fails, no partial output), unmatched lists, no exceptions,
deterministic; 8/8 tests.

VDE-1621 (P2): beam_mesh -- B-Rep to centerlines (analytic cylinder axis ->
faceted prism axis inference -> straight-edge fallback) -> Line2/Line3 elements
with section assignment, junction/end nodes, local axes, Line3 midpoints;
9/9 tests.

VDE-1620 (P3): edge_element_mesh -- global unique edge table, tetra_edges +
tetra_edge_sign direction contract (v-u == sign*(b-a)), B-Rep edge tags,
boundary face edges for PEC; Nedelec1 explicitly rejected (no silent
degradation); 8/8 tests.

Docs: api-reference-mesh +149 lines (3 API contracts), wave-3 parallel
implementation report, remaining-gaps closed list + record, feedback-status
batch entries, ticket appendices.

Verification: full Release build exit 0; 23-suite integration 847 tests passed
0 failed; PR gate 930/930 (104.10 s).
2026-11-20 02:29:45 +08:00
hm fef4ca22ab feat(brep/cae): face-level midsurface/offset and surface shell mesh; region table (VDE-1623/1618)
pr-quality / fast-gate (build + core-pr tests + determinism) (push) Canceled after 0s
pr-quality / static-gate (workflows + docs claims + coverage profile) (push) Canceled after 0s
VDE-1623 (P1) - face-level midsurface and shell mesh:
  include/vde/brep/face_midsurface.h + src/brep/face_midsurface.cpp
    FaceTrimmedSurface (3D loops + per-segment source faces + thickness)
    offset_face_surface (plane/cylinder exact; sphere/cone/torus/spline reject)
    mid_surface_face (thickness min/mean/max, loop pairing, e_* diagnostics)
  include/vde/cae/surface_shell_mesh.h + src/cae/surface_shell_mesh.cpp
    surface_shell_mesh: quads/tris + thickness + element_source_face +
    boundary_nodes(node, source face)
  deviations documented: cae namespace (avoids brep<->mesh cycle), face-level
  3D loops instead of parametric brep::TrimmedSurface, new function name.
  test_vde1623_face_midsurface 15/15: plate thickness 2 / area 5000 / all quads /
  boundary sources; holed plate keeps 1 inner loop with hole-wall tags;
  wedge e_nonuniform_thickness; loop mismatch e_face_count_mismatch.

VDE-1618 (P2) - body region semantics:
  include/vde/cae/region_table.h + src/cae/region_table.cpp (namespace vde::mesh)
    RegionRole/MeshRegion/RegionTable + build_region_table
    connected-component regions by shared nodes; FNV-1a geometric-signature
    region_id independent of material/element count/order; boundary face tags.
  test_vde1618_region_table 13/13: single box 1 Solid region/6 tags; stable ids
  across remesh; material-independent ids; thin-wall shell 1 Solid/12 planes;
  shell+cavity merged mesh -> Solid+Cavity 2 regions.

Integration fixes:
  surface_shell_mesh.cpp undefined surface_index (blocked A7 builds) -> input_index
  loop_source_faces was all -1: BrepModel::edge_faces takes edge array index while
  sampling stored TopoEdge::id (vertex ids 0..7 shift edge ids 8..19 vs index 0..11)
  -> whole chain now stores indices; source-face tags verified.

Verification: full Release build OK; 20 integration suites all green
(test_vde1623 15/15, test_vde1618 13/13, test_vde1346 15/15, test_vde1360 12/12,
test_fea_mesh 68+1 skip, test_brep 96/96, test_trimmed_surface 34/34, ...);
PR gate 930/930 passed, 0 failed, 76.58 s.
2026-11-20 01:56:43 +08:00
hm 848746588f feat(brep/cae): body access contract, STEP assembly IO, PinSlot fix, POLY_LOOP volume, midsurface patches
VDE-1622 实体访问契约:TopoBody 增加 stable_id/revision,新增 body_access.h/.cpp
(list_bodies/extract_body/resolve_body,Resolved/Missing/Ambiguous/Split/Merged),
新增 additive 序列化段 17 BODY_IDENTITY(旧读端跳过,旧文件 revision=0)。

VDE-900 STEP 装配读写:import_step_assembly(PRODUCT/NAUO/IDT -> AssemblyNode 树),
导出端每实例补 CONTEXT_DEPENDENT_SHAPE_REPRESENTATION,产品名与 id 同步改写。

VDE-901 PinSlot:由串行布尔改为单次精确差集(腰形棱柱工具体),体积 1000->400,
新增 apply_assembly_feature_checked 失败外显诊断;BoltHole/RivetPattern 不回归。

VDE-1346 §7 中面元数据:MidsurfacePatch.patch_id/faces/edges/thickness_min/max/mean,
MidSurface.patches/junctions/feature_edges/valid/issues;平面共面 tile 做几何并集
(顶点切分+端点吸附+反向线段抵消),sample_loops 改为按顶点串链避免环绕向丢失。

POLY_LOOP 体积一致性:恢复 VDE-1355 逐三角带符号朝向回退(|raw|<5%*sum|t| 时用体心),
修复 StepImportPolyLoop 两个用例的 mesh_volume 0/49.2 vs analytic 4.08。

tests: test_vde1622_body_access 14, test_vde900_assembly_io 6, test_assembly_pmi 10,
test_step_import 104, test_step_export 22, test_vde1346_cae_preprocess 15, test_fea_mesh 68(+1 skip),
test_brep 96, test_measure 160, test_vde_format 90; PR gate 918/918 (76.09 s).
2026-11-20 00:14:03 +08:00
hm 9632bbfa7c feat(cae): VTK/CGNS/HDF5 result export (VDE-1361) 2026-11-15 14:39:15 +08:00
hm dba2d0976c feat(cae): shell mesh with Tri3/Tri6/Quad4/Quad8, offsets and boundary tags (VDE-1360) 2026-11-15 13:42:51 +08:00
hm a2cf336ba4 feat(cae): patch-recovery error estimator and adaptive tet refinement (VDE-1359)
Add ElementField/ErrorIndicator/AdaptiveResult with patch-recovery error estimation for Tet4/Hex8 and a conforming red-green Tet4 refinement loop. The adaptive loop transfers the recovered nodal field by barycentric interpolation, inherits B-Rep face/edge tags, and reports readable target_error/max_elements/max_iterations stop reasons.

Also fix the extruded-prism fast path so it samples curved cap loops with the NURBS domain/reversal, supports reversed top-loop orientation, and extrudes multiple layers instead of only two. This gives the filleted cantilever a valid coarse mesh instead of a generic Delaunay mesh with degenerate tets.
2026-11-15 13:06:43 +08:00
hm 7d2c6e7993 feat(brep): local size field and conforming adaptive tet refinement (VDE-1358) 2026-11-15 12:38:49 +08:00
hm ae28257ef7 feat(brep): source/target face driven hex sweep (VDE-1357) 2026-11-15 11:44:55 +08:00
hm f1eea525a0 feat(brep,cae): persistent topology ids, resolution and selections (VDE-1354) 2026-11-15 10:41:43 +08:00
hm 9c1f4d5207 feat(cae): true Tet10/Hex20/Wedge15 generation and quadratic deck (VDE-1355) 2026-11-15 10:36:38 +08:00
hm 8bb5a18992 feat(cae): opt-in voxel tetra fallback for freeform solids 2026-11-15 08:03:39 +08:00
hm 9e28112bdd fix(cae): close cylinder/tube hex seams and validate hex output 2026-11-14 19:13:24 +08:00
hm 34e521d2b8 fix(cae): reject invalid general Delaunay tetra output 2026-11-14 19:01:40 +08:00
hm 1ae643197b feat(cae): validate volume mesh closure and volume error 2026-11-14 17:40:39 +08:00
hm f243175520 feat(cae): conical thin-wall midsurface and shell mesh 2026-11-14 17:31:22 +08:00
hm 14b99701b1 feat(cae): toroidal thin-wall midsurface and shell mesh 2026-11-14 17:18:53 +08:00
hm ceb0a22871 feat(cae): spherical thin-wall midsurface and shell mesh 2026-11-14 16:54:34 +08:00
hm 5069fcfa8e feat(cae): cylindrical thin-wall midsurface and shell mesh 2026-11-14 16:51:49 +08:00
hm 1866f00efd feat(cae): planar midsurface and shell mesh for thin walls 2026-11-14 16:48:34 +08:00
hm 7313e0723d feat(cae): extract cylindrical centerlines for VDE-1346 2026-11-14 16:36:44 +08:00
hm 163d0c47e6 feat: P1.x 内核对齐 + P2-1 vde_cae + P2-2 插件扩展点 + VDE-1249 三阻塞修复(1.0.47)
### P1.x 内核对齐(P1 遗留收口)
- 原生 .vde 序列化(serializer/vde_format/vde_text)迁入内核 vde_brep;C API 序列化回迁 vde_kernel_capi;
  PMI/MBD 拆为内核数据模型(vde_brep)+ 3D-PDF 导出(vde_io/pmi_export.cpp),消除 kernel→io 反向依赖;
- make_geometry_host_services() 迁入内核 vde_brep,kernel-only 下 PluginManager+宿主服务可用;
- kernel-only 约 40 个测试 target + 4 个 examples 门控;六业务 OFF 的 2 个测试 target 门控;
- vde_version() 返回 0.5.0 既有缺陷修复;kernel SDK consumer 实测 1.0.47;

### P2-1 vde_cae 官方模块
- include/vde/cae/*、src/cae/*、tests/cae/*;旧路径转发头兼容;VDE_BUILD_CAE 开关;
- vde_io 移除 fea_mesh/fluid_domain;ctest 用例数保持(95 项 CAE 测试);CAE=OFF 构建 937/937;

### P2-2 插件 ABI 1.2:CAE solver / CAM strategy 扩展点
- VdeCaeSolverPlugin/VdeCamStrategyPlugin + Registration 尾部扩展(旧插件兼容);
- PluginManager cae_solvers()/cam_strategies()/solve_cae()/invoke_cam(),加载校验/失败隔离;
- plugins/sample_cae、sample_cam_post、abi11_compat、external/{runner,sample_stl_converter};
- docs/design/vde-service-protocol.md 进程外服务协议草案;test_plugin_extensions 9/9;

### VDE-1249 三阻塞修复
- fix1 共享边采样性能悬崖:sagitta 自适应段数 + 自由曲面证据触发 + fast planar loop 256 + IncrementalMesher 复用 mesh_face_diag;
  box+16 孔 legacy 3.3-3.6s→69.5ms、rebuild 4095→103ms;box+25 孔 5.1s→190.9ms;n42 链 ≤222ms;open=0/面积体积正确;
- fix2 fillet/blend 破损体护栏(fillet_edges_checked:watertight/dangling 护栏 + heal 重试 + 显式失败/诊断;
  静默 no-op success → 显式失败)+ delete_face_with_heal/fill_hole 边环重排(26 面盒 0/26→6/6,box 2/6→6/6);
- fix3 wireframe tight payload:WireframeOptions.include_segment_info + C API VdeWireframeOptions 尾扩展 +
  vde_body_to_wireframe_opt2(旧 ABI 安全);tight≈49-61% full(与 1.0.12 旧风格差 4B/段);

### 工程
- 修复 .gitignore `*.txt` 误伤:`!CMakeLists.txt`,把 plugins/**、tools/、tests/plugin、tests/cae 等漏入库的
  CMakeLists.txt 纳入版本库(保证干净 checkout 可构建);
- 版本 1.0.47(CMake/version.h/test_version/README/docs index/module-manual 同步);

验证:全量构建 0 error(334 targets);全量 ctest 7395 注册、7300/7300 PASS(0 failed,24 skipped,194.39s);
kernel-only(-DVDE_BUILD_IO=OFF + BUILD_TESTS=ON)全量构建 0 failed、plugin 30/12 + capi_split 7 全绿;
六业务 OFF 全量测试构建 0 failed;CAE 95/95;插件 ctest 61/61;VDE-1249 repro 前后数字见 CHANGELOG。
2026-10-28 16:32:01 +08:00