Mesh.CreateSphere (Double, Int32, Int32) Method
Creates a Sphere primitive.
Public Shared Function CreateSphere( _
ByVal radius As Double, _
ByVal slices As Integer, _
ByVal stacks As Integer _
) As Mesh
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Parameters
-
radius
-
double
Sphere's radius
-
slices
-
int
Number of slices
-
stacks
-
int
Numer of stacks
Return Value
Mesh
The created mesh.
.NET Framework
Supported in: 4.5, 4.6, 4.7