Mesh.CreateTorus<T> (Double, Double, Int32, Int32) Method

Creates a Torus primitive.
Public Shared Function CreateTorus(Of  _ 
T As {Mesh, New})( _ 
ByVal majorRadius As Double, _ 
ByVal minorRadius As Double, _ 
ByVal sides As Integer, _ 
ByVal rings As Integer
) As T
This language is not supported or no code example is available.
public static T CreateTorus<T>( 
double majorRadius
double minorRadius
int sides
int rings 

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

Type Parameters

T

Parameters

majorRadius
double

Torus radius

minorRadius
double

Torus section radius

sides
int

Number of sides

rings
int

Number of rings

Return Value

T

The created mesh.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition