Adds a box to the specified MeshGeometry3D.
Namespace: Ico.Windows.Media.Media3DAssembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public static void AddBox(
MeshGeometry3D mesh,
double width,
double height,
double length,
Point3D position,
int segments,
UVTileMode tileMode,
Vector customTile
) |
Visual Basic |
---|
Public Shared Sub AddBox ( _
mesh As MeshGeometry3D, _
width As Double, _
height As Double, _
length As Double, _
position As Point3D, _
segments As Integer, _
tileMode As UVTileMode, _
customTile As Vector _
) |
JScript |
---|
public static function AddBox(
mesh : MeshGeometry3D,
width : double,
height : double,
length : double,
position : Point3D,
segments : int,
tileMode : UVTileMode,
customTile : Vector
) |
Parameters
- mesh
- Type: System.Windows.Media.Media3D..::..MeshGeometry3D
The MeshGeometry3D which to add the box to.
- width
- Type: System..::..Double
The width (along the X direction) for the resulting box.
- height
- Type: System..::..Double
The height (along the Y direction) for the resulting box.
- length
- Type: System..::..Double
The length (along the Z direction) for the resulting box.
- position
- Type: System.Windows.Media.Media3D..::..Point3D
The Point3D specifying the center of the box.
- segments
- Type: System..::..Int32
The number of divisions on each side of the resulting box.
- tileMode
- Type: Ico.Windows.Media.Media3D..::..UVTileMode
A UVTileMode used to specify how coordintates from an applied texture would be mapped
onto the surface of the box.
- customTile
- Type: System.Windows..::..Vector
A Vector used to specify the number of X and Y tiles when the specified tileMode
is Field Value
UVTileMode.Custom.
Return Value
The
MeshGeometry3D representing the resulting 3D box.
See Also