Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Entities Namespace / Mesh Class / CreateSpring Method / CreateSpring<T>(Double,Double,Int32,Int32,Double,Double,Boolean,Boolean,natureType) Method
Spring radius
Wire radius
Number of subdivision sides
Number of subdivision rings per turn
Height of each complete turn
Number of turns
Reverse direction
Closing caps on both ends
Nature of the resulting mesh entity

In This Topic
    CreateSpring<T>(Double,Double,Int32,Int32,Double,Double,Boolean,Boolean,natureType) Method
    In This Topic
    Creates a Spring primitive.
    Syntax
    'Declaration
     
    Public Overloads Shared Function CreateSpring(Of T As {New, Mesh})( _
       ByVal radius As Double, _
       ByVal wireRadius As Double, _
       ByVal sides As Integer, _
       ByVal rings As Integer, _
       ByVal pitch As Double, _
       ByVal turns As Double, _
       ByVal reverseTwist As Boolean, _
       ByVal closed As Boolean, _
       ByVal meshNature As Mesh.natureType _
    ) As T
    public static T CreateSpring<T>( 
       double radius,
       double wireRadius,
       int sides,
       int rings,
       double pitch,
       double turns,
       bool reverseTwist,
       bool closed,
       Mesh.natureType meshNature
    )
    where T: new(), Mesh

    Parameters

    radius
    Spring radius
    wireRadius
    Wire radius
    sides
    Number of subdivision sides
    rings
    Number of subdivision rings per turn
    pitch
    Height of each complete turn
    turns
    Number of turns
    reverseTwist
    Reverse direction
    closed
    Closing caps on both ends
    meshNature
    Nature of the resulting mesh entity

    Type Parameters

    T

    Return Value

    The resulting mesh object.
    See Also