共用方式為


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

網格向量類型。

傳回

屬性

適用於