Edytuj

Udostępnij za pośrednictwem


MDLMesh.CreateBox Method

Definition

Overloads

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

Creates a right rectangular box from the width, height, and depth that are contained in dimensions, with the specified number of segments and geometry kind.

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

Parameters

dimensions
Vector3
segments
Vector3i
geometryType
MDLGeometryType
inwardNormals
Boolean

Returns

Attributes

Applies to

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

Creates a right rectangular box from the width, height, and depth that are contained in dimensions, with the specified number of segments and geometry kind.

[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

Parameters

vector
Vector3
segments
Vector3i

The number of divisions to create in each dimension.

geometryType
MDLGeometryType

Whether to create triangles, quadrilaterals, or lines.

inwardNormals
Boolean

Whether to generate inward-pointing normals.

allocator
IMDLMeshBufferAllocator

The allocator to use instead of the default, internal allocator.

This parameter can be null.

type
MDLMesh.MDLMeshVectorType

The mesh vector type.

Returns

Attributes

Applies to