This document is archived and information here might be outdated.  Recommended version.


IPath.Smooth Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IPath.Smooth Method

Converts this path into a smooth approximation of itself that contains only Bezier curve segments.

[Visual Basic .NET]
Public Sub Smooth ( _
    ByVal maxAllowableOffset As Double _
)
[C#]
public void Smooth (
    double maxAllowableOffset
);
[C++]
HRESULT Smooth(
  double maxAllowableOffset
);
[C++]

Parameters maxAllowableOffset maxAllowableOffset is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Converts the Path into a Path containing only BezierCurve segments.  The created BezierCurve path is a Generalization of the original path that has a maximum deviation of maxDeviation from the original path.  If maxDeviation = 0, all of the original vertices are maintained.  At each vertex, the adjoining BezierCurves have complementary tangents which creates a continuous (smooth) transition between segments.

Remarks

 

IPath Smooth Example

See Also

IPath Interface | IPolycurve.Smooth Method | IPath.SmoothLocal Method | IPath.Smooth Method | IBezierCurve Interface