BezierPathBuilder Class

BezierPathBuilder class

The BezierPathBuilder class is responsible for constructing a Bezier path from a given set of points. It approximates a trace of points with a Bezier curve, optimizing the number of segments to closely match the original trace while minimizing complexity.

public class BezierPathBuilder : IPathBuilder

Constructors

NameDescription
BezierPathBuilder()Initializes a new instance of the BezierPathBuilder class.

Properties

NameDescription
ErrorThreshold { get; set; }Gets or sets the error threshold. This parameter defines maximum deviation of points to fitted curve. By default it is 30.
MaxIterations { get; set; }Gets or sets the error threshold. This parameter defines number of iteration for least-squares approximation method. By default it is 30.
TraceSmoother { get; set; }Gets or sets the trace smoother.

Methods

NameDescription
Build(IEnumerable<PointF>)Builds an optimized Bezier path from a sequence of trace points. The method approximates the given trace with a Bezier curve, using a combination of line and curve segments. It aims to minimize the number of segments while ensuring the path closely fits the original trace.

See Also