MDLMesh.CreateCylinder 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.
Creates a cylinder from the specified parameters.
[ObjCRuntime.TV(10, 0)]
public static ModelIO.MDLMesh CreateCylinder (OpenTK.Vector3 extent, OpenTK.Vector2i segments, bool inwardNormals, bool topCap, bool bottomCap, ModelIO.MDLGeometryType geometryType, ModelIO.IMDLMeshBufferAllocator allocator);
static member CreateCylinder : OpenTK.Vector3 * OpenTK.Vector2i * bool * bool * bool * ModelIO.MDLGeometryType * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLMesh
Parameters
- extent
- Vector3
The extent of the cylinder.
- segments
- Vector2i
The number of divisions to create in each dimension.
- inwardNormals
- Boolean
Whether to generate inward-pointing normals.
- topCap
- Boolean
Whether to put a top cap on the cylinder.
- bottomCap
- Boolean
Whether to put a bottom cap on the cylinder.
- geometryType
- MDLGeometryType
Whether to create triangles, quadrilaterals, or lines.
- allocator
- IMDLMeshBufferAllocator
The allocator to use instead of the default, internal allocator.
This parameter can be null
.
Returns
- Attributes