fill method

  1. @override
OpSet fill(
  1. List<PointD> points
)
override

Implementation

@override
OpSet fill(List<PointD> points) {
  final HatchFiller hatchFiller = HatchFiller(_config);
  final FillerConfig rotatedConfig = _config.copyWith(
    hachureAngle: _config.hachureAngle + 90,
  );
  final HatchFiller rotatedHatchFiller = HatchFiller(rotatedConfig);

  final OpSet first = hatchFiller.fill(points);
  final OpSet second = rotatedHatchFiller.fill(points);

  return OpSet(
    type: OpSetType.fillSketch,
    ops: [...first.ops, ...second.ops],
  );
}