Mesh.Cylinder メソッド

[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]

左手座標系を使用して、円柱を含むメッシュを作成します。

名前空間:  Microsoft.WindowsMobile.DirectX.Direct3D
アセンブリ:  Microsoft.WindowsMobile.DirectX (Microsoft.WindowsMobile.DirectX.dll 内)

構文

'宣言
Public Shared Function Cylinder ( _
    device As Device, _
    radius1 As Single, _
    radius2 As Single, _
    length As Single, _
    slices As Integer, _
    stacks As Integer _
) As Mesh
'使用
Dim device As Device
Dim radius1 As Single
Dim radius2 As Single
Dim length As Single
Dim slices As Integer
Dim stacks As Integer
Dim returnValue As Mesh

returnValue = Mesh.Cylinder(device, _
    radius1, radius2, length, slices, _
    stacks)
public static Mesh Cylinder(
    Device device,
    float radius1,
    float radius2,
    float length,
    int slices,
    int stacks
)
public:
static Mesh^ Cylinder(
    Device^ device, 
    float radius1, 
    float radius2, 
    float length, 
    int slices, 
    int stacks
)
static member Cylinder : 
        device:Device * 
        radius1:float32 * 
        radius2:float32 * 
        length:float32 * 
        slices:int * 
        stacks:int -> Mesh 

パラメーター

  • radius1
    型 : System.Single
    Z 軸の負の側の面の半径。値は 0.0f 以上である必要があります。
  • radius2
    型 : System.Single
    Z 軸の正の側の面の半径。値は 0.0f 以上である必要があります。
  • slices
    型 : System.Int32
    主軸を回転軸としたスライスの数。
  • stacks
    型 : System.Int32
    主軸に沿ったスタックの数。

戻り値

型 : Microsoft.WindowsMobile.DirectX.Direct3D.Mesh
円柱のメッシュを表す Mesh オブジェクト。

例外

例外 条件
InvalidCallException

メソッドの呼び出しが無効です。たとえば、メソッドのパラメーターに無効な値が含まれている場合などです。

OutOfMemoryException

Direct3D で、呼び出しを完了するために十分なメモリを割り当てられませんでした。

解説

作成される円柱は、中心が原点となり、軸は z 軸方向となります。

.NET Framework セキュリティ

プラットフォーム

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

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET フレームワークのシステム要件」を参照してください。

バージョン情報

.NET Compact Framework

サポート対象 : 3.5、2.0

参照

参照

Mesh クラス

Mesh メンバー

Microsoft.WindowsMobile.DirectX.Direct3D 名前空間