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
) |
Visual Basic |
---|
Public Shared Sub AddBox ( _
mesh As MeshGeometry3D, _
width As Double, _
height As Double, _
length As Double, _
position As Point3D, _
segments As Integer _
) |
JScript |
---|
public static function AddBox(
mesh : MeshGeometry3D,
width : double,
height : double,
length : double,
position : Point3D,
segments : int
) |
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.
Return Value
The
MeshGeometry3D representing the resulting 3D box.
See Also