buildFillLines method
Implementation
List<Line> buildFillLines(List<PointD> points, FillerConfig? config) {
final _config = config ?? FillerConfig.defaultConfig;
final PointD rotationCenter = PointD(0, 0);
final double angle = (_config.hachureAngle! + 90).roundToDouble();
if (angle != 0) {
// ignore: parameter_assignments
points = rotatePoints(points, rotationCenter, angle);
}
List<Line> lines = _straightenLines(points);
if (angle != 0) {
lines = rotateLines(lines, rotationCenter, -angle);
}
return lines;
}