Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot.Entities Namespace / Curve Class / LocalApproximation Method / LocalApproximation(IList<Point3D>,Double,Vector3D[],Boolean) Method
The list of points to approximate
The maximum error allowed
Automatically chosen tangents
If true a corner may appear between the beginning and end of the curve, if false (default) the start and end tangents are parallel

In This Topic
    LocalApproximation(IList<Point3D>,Double,Vector3D[],Boolean) Method
    In This Topic
    Local cubic approximation of a curve bounded to a certain error.
    Syntax
    'Declaration
     
    Public Overloads Shared Function LocalApproximation( _
       ByVal Q As IList(Of Point3D), _
       ByVal err As Double, _
       ByRef tangents As Vector3D(), _
       Optional ByVal cornerEnd As Boolean _
    ) As Curve
    public static Curve LocalApproximation( 
       IList<Point3D> Q,
       double err,
       out Vector3D[] tangents,
       bool cornerEnd
    )

    Parameters

    Q
    The list of points to approximate
    err
    The maximum error allowed
    tangents
    Automatically chosen tangents
    cornerEnd
    If true a corner may appear between the beginning and end of the curve, if false (default) the start and end tangents are parallel

    Return Value

    The approximated curve if the operation is successful, null/Nothing otherwise.
    See Also