Commit Graph
6 Commits
Author SHA1 Message Date
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 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
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 0812fe209e docs: 全库文档统一与文件头注释补齐(对标计划/指南/API 参考同步) 2026-08-19 13:25:52 +08:00
茂之钳 dc91548525 docs: complete API reference — 10 files, 3015 lines
CI / Build & Test (push) Failing after 25s
CI / Release Build (push) Failing after 41s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
docs/reference/:
  README.md (136)          — index
  api-reference-core.md (690)    — Matrix4D/CAM/platform
  api-reference-brep.md (549)    — section/gizmo/dimension/hlr/snap/gear
  api-reference-curves.md (304)  — surface_tools/factory methods
  api-reference-foundation.md (342) — 22 formats + DWG bridge
  api-reference-mesh.md (248)    — blend/point cloud
  api-reference-spatial.md (203) — BVH indices
  api-reference-capi.md (238)    — C API + Python ctypes
  format-support.md (118)        — 22 formats matrix
  changelog.md (187)             — v1.0.1 additions
2026-08-01 21:25:57 +08:00