Fit Method (IPolyLine)

Fit Method (IPolyLine) | Send Feedback
See Also

Success[out]
  True if the 2D PolyLine is turned into a smooth curve, false if not

Turns the 2D PolyLine into a smooth curve consisting of Arcs joining each pair of vertices.

# Syntax

Visual Basic |
--- | ---
    Function Fit() As System.Boolean

C# |
--- | ---
    System.bool Fit()

JavaScript |
--- | ---
    Fit() : Boolean

COM native C++ |
--- | ---
    HRESULT Fit(
       VARIANT_BOOL* Success
    )

C++ |
--- | ---
    DSRESULT Fit(
       bool* Success
    )

#### Parameters

Success[out] or Return Value
  True if the 2D PolyLine is turned into a smooth curve, false if not

# Remarks

Using this method ensures that the curve passes through all vertices of the 2D PolyLine. Using the IPolyLine::Spline method also turns the 2D PolyLine into a curve, but it usually does not cause the curve to pass through the vertices.

# See Also

####

IPolyLine Interface
IPolyLine Members
IPolyLine::Decurve Method
IPolyLine::Type Property
IPolyLine::Split Method
IPolyLine::Straighten Method

# Availability

DraftSight V1R1.1