Checks terrain-conforming road vertices, winding, bounds and shared render/collision origins.
Subsystem: Vehicles, cockpit geometry and surface physics
Fixture/harness: rtsterrainsurfacetests
Setup: The standalone RtsTerrainSurfaceTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/RtsTerrainSurfaceTests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Release|x64.
RtsTerrainSurfaceTests.cpp
Source: Tests/RtsTerrainSurfaceTests.cpp
Verify Surface
Fixture: RTS Terrain Surface tests
Case symbol: VerifySurface
Source: Tests/RtsTerrainSurfaceTests.cpp:95
- Test
- Verify Surface: RTS vertex does not lie on the terrain (including plot edges); RTS triangle bridges a terrain fold.
Source check messages (including original failure wording)
-
RTS vertex does not lie on the terrain (including plot edges)
-
RTS triangle winding changed
-
RTS triangle bridges a terrain fold
Verify Render Origins
Fixture: RTS Terrain Surface tests
Case symbol: VerifyRenderOrigins
Source: Tests/RtsTerrainSurfaceTests.cpp:132
- Test
- Verify Render Origins: terrain drawing and collision must restore the origin subtracted from vertices; ground collision ray uses a different origin; terrain and city road separate after camera motion or grid rebuild.
Source check messages (including original failure wording)
-
terrain drawing and collision must restore the origin subtracted from vertices
-
ground collision ray uses a different origin
-
fixture must reproduce the draw-origin road gap
-
terrain and city road separate after camera motion or grid rebuild
Entry-point checks
Fixture: RTS Terrain Surface tests
Case symbol: main
Source: Tests/RtsTerrainSurfaceTests.cpp:191
- Test
- Checks terrain-conforming road vertices, winding, bounds and shared render/collision origins. This entry point also runs the associated check groups.
Source check messages (including original failure wording)
-
fixture must reproduce the old planet-space rounding gap
-
neighboring plot origins separate a shared edge
-
tile rotation/mirroring changed