次の方法で共有


MDLMesh.CreateBox メソッド

定義

オーバーロード

CreateBox(Vector3, Vector3i, MDLGeometryType, Boolean, IMDLMeshBufferAllocator)
CreateBox(Vector3, Vector3i, MDLGeometryType, Boolean, IMDLMeshBufferAllocator, MDLMesh+MDLMeshVectorType)

に含まれる dimensions幅、高さ、深さから、指定した数のセグメントとジオメトリの種類を使用して、右の四角形のボックスを作成します。

CreateBox(Vector3, Vector3i, MDLGeometryType, Boolean, IMDLMeshBufferAllocator)

[ObjCRuntime.TV(10, 0)]
public static ModelIO.MDLMesh CreateBox (OpenTK.Vector3 dimensions, OpenTK.Vector3i segments, ModelIO.MDLGeometryType geometryType, bool inwardNormals, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreateBox : OpenTK.Vector3 * OpenTK.Vector3i * ModelIO.MDLGeometryType * bool * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

パラメーター

dimensions
Vector3
segments
Vector3i
geometryType
MDLGeometryType
inwardNormals
Boolean

戻り値

属性

適用対象

CreateBox(Vector3, Vector3i, MDLGeometryType, Boolean, IMDLMeshBufferAllocator, MDLMesh+MDLMeshVectorType)

に含まれる dimensions幅、高さ、深さから、指定した数のセグメントとジオメトリの種類を使用して、右の四角形のボックスを作成します。

[ObjCRuntime.TV(10, 0)]
public static ModelIO.MDLMesh CreateBox (OpenTK.Vector3 vector, OpenTK.Vector3i segments, ModelIO.MDLGeometryType geometryType, bool inwardNormals, ModelIO.IMDLMeshBufferAllocator allocator, ModelIO.MDLMesh.MDLMeshVectorType type = ModelIO.MDLMesh+MDLMeshVectorType.Dimensions);
static member CreateBox : OpenTK.Vector3 * OpenTK.Vector3i * ModelIO.MDLGeometryType * bool * ModelIO.IMDLMeshBufferAllocator * ModelIO.MDLMesh.MDLMeshVectorType -> ModelIO.MDLMesh

パラメーター

vector
Vector3
segments
Vector3i

各ディメンションで作成する分割の数。

geometryType
MDLGeometryType

三角形、四角形、または線を作成するかどうか。

inwardNormals
Boolean

内向き法線を生成するかどうか。

allocator
IMDLMeshBufferAllocator

既定の内部アロケーターの代わりに使用するアロケーター。

このパラメーターは、null に設定できます。

type
MDLMesh.MDLMeshVectorType

メッシュ ベクターの種類。

戻り値

属性

適用対象