Click or drag to resize
DigitalRuneTerrainRoadLayerSetMesh Method
Sets the road mesh and related properties.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void SetMesh(
	Submesh submesh,
	Aabb aabb,
	float roadLength,
	bool disposeWithRoadLayer
)

Parameters

submesh
Type: DigitalRune.GraphicsSubmesh
The submesh that represents the road.
aabb
Type: DigitalRune.Geometry.ShapesAabb
The axis-aligned bounding box of the mesh.
roadLength
Type: SystemSingle
The length of the road in world space units.
disposeWithRoadLayer
Type: SystemBoolean
to automatically dispose of the mesh when the TerrainRoadLayer is disposed of; otherwise, .
Remarks
See Also