LineSmoother smoother = new LineSmoother(Utils.getGeometryFactory()); smoother.setControl(smootherControl); LineString smoothed = smoother.smooth(contour, smoothAlpha); mergedContourLines.add(smoothed);
Coordinate[] coords = ls.getCoordinates(); Coordinate[][] controlPoints = getControlPoints(coords, alpha); Coordinate[] segment = cubicBezier( coords[i], coords[i+1], controlPoints[i][1], controlPoints[i+1][0],