Package snap.geom
Class PathFitCurves
java.lang.Object
snap.geom.PathFitCurves
Bezier curve fitting code adapted from
"An Algorithm for Automatically Fitting Digitized Curves", by Philip J. Schneider
"Graphics Gems", 1990 - Andrew S. Glassner, ed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
fitCurveFromPointIndex
(Path2D aPath, int anIndex) Takes a path with a bunch of line-to segments and replaces them with curves.static Shape
getCurveFitPathForPoints
(Point[] thePoints) Returns a curve fit path for given points.
-
Constructor Details
-
PathFitCurves
public PathFitCurves()
-
-
Method Details
-
fitCurveFromPointIndex
Takes a path with a bunch of line-to segments and replaces them with curves. -
getCurveFitPathForPoints
Returns a curve fit path for given points.
-