Mesh.Box Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Uses a left-handed coordinate system to create a mesh that contains an axis-aligned box.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

public static Mesh Box(
	Device device,
	float width,
	float height,
	float depth
)

Parameters

device
Type: Microsoft.WindowsMobile.DirectX.Direct3D.Device
A Device object.
width
Type: System.Single
Width of the box along the x-axis.
height
Type: System.Single
Height of the box along the y-axis.
depth
Type: System.Single
Depth of the box along the z-axis.

Return Value

Type: Microsoft.WindowsMobile.DirectX.Direct3D.Mesh
A Mesh object that contains the box.

ExceptionCondition
InvalidCallException

The method call is invalid. For example, a method's parameter may contain an invalid value.

OutOfMemoryException

Direct3D could not allocate sufficient memory to complete the call.

The created box is centered at the origin.

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0
Show: