Share via


MDLMesh.CreateBox Method

Definition

Overloads

Name Description
CreateBox(Vector3, NVector3i, MDLGeometryType, Boolean, IMDLMeshBufferAllocator)
CreateBox(Vector3, NVector3i, MDLGeometryType, Boolean, IMDLMeshBufferAllocator, MDLMesh+MDLMeshVectorType)

Creates a right rectangular box from the vector, with the specified number of segments and geometry kind.

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

public static ModelIO.MDLMesh CreateBox(System.Numerics.Vector3 dimensions, CoreGraphics.NVector3i segments, ModelIO.MDLGeometryType geometryType, bool inwardNormals, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreateBox : System.Numerics.Vector3 * CoreGraphics.NVector3i * ModelIO.MDLGeometryType * bool * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh

Parameters

dimensions
Vector3
segments
NVector3i
geometryType
MDLGeometryType
inwardNormals
Boolean

Returns

Applies to

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

Creates a right rectangular box from the vector, with the specified number of segments and geometry kind.

public static ModelIO.MDLMesh CreateBox(System.Numerics.Vector3 vector, CoreGraphics.NVector3i segments, ModelIO.MDLGeometryType geometryType, bool inwardNormals, ModelIO.IMDLMeshBufferAllocator allocator, ModelIO.MDLMesh.MDLMeshVectorType type = ModelIO.MDLMesh+MDLMeshVectorType.Dimensions);
static member CreateBox : System.Numerics.Vector3 * CoreGraphics.NVector3i * ModelIO.MDLGeometryType * bool * ModelIO.IMDLMeshBufferAllocator * ModelIO.MDLMesh.MDLMeshVectorType -> ModelIO.MDLMesh

Parameters

vector
Vector3
segments
NVector3i

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.

type
MDLMesh.MDLMeshVectorType

The mesh vector type.

Returns

Applies to