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

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

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

Type Parameters

T

Parameters

radius
double

Sphere's radius

slices
int

Number of slices

stacks
int

Numer of stacks

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