Mesh.CreateCone<T> (Double, Double, Double, Int32, natureType) Method

Creates a Cone primitive.
Public Shared Function CreateCone(Of  _ 
T As {Mesh, New})( _ 
ByVal baseRadius As Double, _ 
ByVal topRadius As Double, _ 
ByVal height As Double, _ 
ByVal slices As Integer, _ 
ByVal meshNature As natureType
) As T
This language is not supported or no code example is available.
public static T CreateCone<T>( 
double baseRadius
double topRadius
double height
int slices
natureType meshNature 

where T : Mesh, new()
This language is not supported or no code example is available.

Type Parameters

T

Parameters

baseRadius
double

Cone's base radius

topRadius
double

Cone's top radius

height
double

The cone's height

slices
int

Number of faces of the cylinder approximation

meshNature
natureType

Nature of the mesh

Return Value

T

The created mesh.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition