1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::{Point, canvas::rough::{RoughOptions, OpSet}}; use super::HachureFiller; //extends HachureFiller pub struct HatchFiller { } impl HatchFiller { fn fill_polygon(points: Vec<Point<f64>>, options: &RoughOptions) -> OpSet { // let set = self._fill_polygon(points, o); // let o2 = Object.assign({}, o, { hachureAngle: o.hachureAngle + 90 }); // let set2 = self._fill_polygon(points, o2); // set.ops = set.ops.concat(set2.ops); // return set; unimplemented!() } }