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
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 |
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
- allocator
- IMDLMeshBufferAllocator
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
.
The mesh vector type.
Returns
- Attributes