Edit

Share via


MDLMesh.CreateCylinder Method

Definition

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

Applies to