Class TracePath

TracePath class

Class for path processing

public class TracePath

Constructors

NameDescription
TracePath()The default constructor.

Methods

NameDescription
AdjustVertices()Adjust vertices of optimal polygon: calculate the intersection of the two “optimal” line segments, then move it into the unit square if it lies outside. Return 1 with errno set on error; 0 on success. calculate “optimal” point-slope representation for each line segment.
BestPolygon()Find the optimal polygon. Fill in the m and po components. Return 1 on failure with errno set, else 0. Non-cyclic version: assumes i=0 is in the polygon. Fixme: ### implement cyclic version.
CalcLon()
CalcSums()Preparation: fill in the sum* fields of a path (used for later rapid summing).
OptiCurve(double)optimize the path p, replacing sequences of Bezier segments by a single segment when possible. Return 0 on success, 1 with errno set on failure.
Smooth(double)

Fields

NameDescription
area
curve
len
maxX
maxY
minX
minY
pt
sign

See Also