Mesh.Polygon 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 n-sided polygon.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Shared Function Polygon ( _
device As Device, _
length As Single, _
sides As Integer _
) As Mesh
'Usage
Dim device As Device
Dim length As Single
Dim sides As Integer
Dim returnValue As Mesh
returnValue = Mesh.Polygon(device, _
length, sides)
public static Mesh Polygon(
Device device,
float length,
int sides
)
public:
static Mesh^ Polygon(
Device^ device,
float length,
int sides
)
static member Polygon :
device:Device *
length:float32 *
sides:int -> Mesh
Parameters
- device
Type: Microsoft.WindowsMobile.DirectX.Direct3D.Device
A Device object that represents the device associated with the created polygon mesh.
- length
Type: System.Single
Length of each side.
- sides
Type: System.Int32
Number of sides for the polygon; must be greater than or equal to 3.
Return Value
Type: Microsoft.WindowsMobile.DirectX.Direct3D.Mesh
A Mesh object that represents the polygon mesh.
Exceptions
Exception | Condition |
---|---|
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. |
Remarks
The created polygon is centered at the origin.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
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.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0