Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Entities Namespace / Mesh Class / CreateTorus Method / CreateTorus<T>(Double,Double,Int32,Int32,natureType) Method
Torus radius
Torus section radius
Number of sides
Number of rings
Nature of the mesh

In This Topic
    CreateTorus<T>(Double,Double,Int32,Int32,natureType) Method
    In This Topic
    Creates a Torus primitive.
    Syntax
    'Declaration
     
    Public Overloads Shared Function CreateTorus(Of T As {New, Mesh})( _
       ByVal majorRadius As Double, _
       ByVal minorRadius As Double, _
       ByVal sides As Integer, _
       ByVal rings As Integer, _
       ByVal meshNature As Mesh.natureType _
    ) As T
    public static T CreateTorus<T>( 
       double majorRadius,
       double minorRadius,
       int sides,
       int rings,
       Mesh.natureType meshNature
    )
    where T: new(), Mesh

    Parameters

    majorRadius
    Torus radius
    minorRadius
    Torus section radius
    sides
    Number of sides
    rings
    Number of rings
    meshNature
    Nature of the mesh

    Type Parameters

    T

    Return Value

    The created mesh.
    See Also