acdream/tests/AcDream.Core.Tests/Terrain
Erik e54d5ca2cf phase(N.5b) Task 7: TerrainModernConformanceTests
Z-conformance sentinel for issue #51's bug class. Sweeps 10
representative landblocks x 100 sample points (uniform random in
local 0..192 with fixed seed 42). For each point: compute meshTriZ
via barycentric interpolation in the matching triangle of the
LandblockMesh.Build output; compute physicsZ via
TerrainSurface.SampleZFromHeightmap; assert |delta| < 0.001m.

Catches any silent formula or vertex-layout drift between the
visual and physics paths. Skips gracefully if ACDREAM_DAT_DIR
isn't set (CI without dat data).

Local run with dat data: 10/10 landblocks loaded, 1000 samples,
max |delta| = 0.0305 mm (worst case: Direlands 0xC040).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 08:49:15 +02:00
..
ClientConformanceTests.cs fix(terrain): align per-cell triangle geometry with ACE's ConstructPolygons convention 2026-04-21 13:20:59 +02:00
ClientReference.cs test: port ACME ClientReference + conformance tests 2026-04-12 22:45:20 +02:00
LandblockMeshTests.cs feat(core+app): per-cell terrain texture blending (Phase 3c.4) 2026-04-11 14:02:15 +02:00
SplitFormulaDivergenceTest.cs test(N.5b): quantify WB vs retail terrain split formula divergence 2026-05-09 08:22:50 +02:00
TerrainBlendingTests.cs feat(core): terrain surface recipe + cell data packing (Phase 3c.3) 2026-04-11 13:53:32 +02:00
TerrainModernConformanceTests.cs phase(N.5b) Task 7: TerrainModernConformanceTests 2026-05-09 08:49:15 +02:00
TerrainSlotAllocatorTests.cs phase(N.5b) Task 2: TerrainSlotAllocator + tests 2026-05-09 08:44:51 +02:00