MDLMesh.CreateBox Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateBox(Vector3, NVector3i, MDLGeometryType, Boolean, IMDLMeshBufferAllocator) | |
| CreateBox(Vector3, NVector3i, MDLGeometryType, Boolean, IMDLMeshBufferAllocator, MDLMesh+MDLMeshVectorType) |
Creates a right rectangular box from the |
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
- allocator
- IMDLMeshBufferAllocator
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.
The mesh vector type.