Files
ViewDesignEngine/include/vde/cae
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
..