Méthode | Description | |
---|---|---|
Fit ( List |
Attempts to fit a set of Bezier curves to the given data. It returns a set of curves that form a http://en.wikipedia.org/wiki/Composite_B%C3%A9zier_curve with C1 continuity (that is, each curve's start point is coincident with the previous curve's end point, and the tangent vectors of the start and end points are going in the same direction, so the curves will join up smoothly). Returns an empty array if less than two points in input. Input data MUST not contain repeated points (that is, the same point twice in succession). The best way to ensure this is to call any one of the methods in CurvePreprocess, since all three pre-processing methods will remove duplicate points. If repeated points are encountered, unexpected behavior can occur.
|
Méthode | Description | |
---|---|---|
CurveFit ( ) : System |
Private constructor so it can't be constructed externally.
|
|
FitRecursive ( int first, int last, System.Windows.Vector tanL, System.Windows.Vector tanR ) : void |
Main fit function that attempts to fit a segment of curve and recurses if unable to.
|
|
GetInstance ( ) : |
public static Fit ( List |
||
points | List |
Set of points to fit to. |
maxError | System.Double | Maximum distance from any data point to a point on the generated curve. |
Résultat | CubicBezier[] |