| TerrainRoadLayerSetMesh Method |
Sets the road mesh and related properties.
Namespace: DigitalRune.GraphicsAssembly: 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
)
Public Sub SetMesh (
submesh As Submesh,
aabb As Aabb,
roadLength As Single,
disposeWithRoadLayer As Boolean
)
public:
void SetMesh(
Submesh^ submesh,
Aabb aabb,
float roadLength,
bool disposeWithRoadLayer
)
member SetMesh :
submesh : Submesh *
aabb : Aabb *
roadLength : float32 *
disposeWithRoadLayer : bool -> unit
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