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

网格向量类型。

返回

属性

适用于