Click or drag to resize
DigitalRuneTerrainRoadLayerClampRoadToTerrain Method
Clamps a road path to the terrain height.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static void ClampRoadToTerrain(
	Path3F road,
	HeightField terrain
)

Parameters

road
Type: DigitalRune.Mathematics.InterpolationPath3F
The path that represents the road.
terrain
Type: DigitalRune.Geometry.ShapesHeightField
The terrain represented by a HeightField.
Exceptions
ExceptionCondition
ArgumentNullExceptionterrain is .
Remarks
The y position of each path key is set to the terrain height at the xz position.
See Also