Create a new terrain and combine it with the mesh
Namespace: Ico.Windows.Media.Media3DAssembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public static void AddTerrain(
MeshGeometry3D mesh,
int randomSeed,
Vector3D direction,
Point3D position,
double width,
double length,
int widthSegments,
int lengthSegments,
Vector customTile,
double width2,
bool mirror,
double verticalDisplacement,
bool useBordersDisplacement,
ImageSource terrainMapBitmap
) |
Visual Basic |
---|
Public Shared Sub AddTerrain ( _
mesh As MeshGeometry3D, _
randomSeed As Integer, _
direction As Vector3D, _
position As Point3D, _
width As Double, _
length As Double, _
widthSegments As Integer, _
lengthSegments As Integer, _
customTile As Vector, _
width2 As Double, _
mirror As Boolean, _
verticalDisplacement As Double, _
useBordersDisplacement As Boolean, _
terrainMapBitmap As ImageSource _
) |
JScript |
---|
public static function AddTerrain(
mesh : MeshGeometry3D,
randomSeed : int,
direction : Vector3D,
position : Point3D,
width : double,
length : double,
widthSegments : int,
lengthSegments : int,
customTile : Vector,
width2 : double,
mirror : boolean,
verticalDisplacement : double,
useBordersDisplacement : boolean,
terrainMapBitmap : ImageSource
) |
Parameters
- mesh
- Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The mesh to combine the terrain with
- randomSeed
- Type: System..::..Int32
the random seed used to initialize the terrain
- direction
- Type: System.Windows.Media.Media3D..::..Vector3D
The direction of the new terrain: must be one of the main axis
- position
- Type: System.Windows.Media.Media3D..::..Point3D
The center of the terrain
- width
- Type: System..::..Double
The width of the terrain
- length
- Type: System..::..Double
The height of the terrain
- widthSegments
- Type: System..::..Int32
The number of segments used to divice the terrain width
- lengthSegments
- Type: System..::..Int32
The number of segments used to divice the terrain length
- customTile
- Type: System.Windows..::..Vector
The number of UV tiles to use for custom tiling
- width2
- Type: System..::..Double
The second width of the terrain: allows to build trapezoids
- mirror
- Type: System..::..Boolean
Set to true to mirror the mesh
- verticalDisplacement
- Type: System..::..Double
The decimal value indicating the random vertical displacements of the terrain's points
- useBordersDisplacement
- Type: System..::..Boolean
Set to true to enable displacement of borders
- terrainMapBitmap
- Type: System.Windows.Media..::..ImageSource
The ImageSource used as image source for automatic terrain generation
See Also