Class: Rough::Fillers::Dashed

Inherits:
Object
  • Object
show all
Defined in:
lib/rough/fillers/dashed.rb

Instance Method Summary collapse

Constructor Details

#initialize(helper) ⇒ Dashed

Returns a new instance of Dashed.



9
10
11
# File 'lib/rough/fillers/dashed.rb', line 9

def initialize(helper)
  @helper = helper
end

Instance Method Details

#fill_polygons(polygon_list, o) ⇒ Object



13
14
15
16
# File 'lib/rough/fillers/dashed.rb', line 13

def fill_polygons(polygon_list, o)
  lines = ScanLineHachure.polygon_hachure_lines(polygon_list, o)
  OpSet.new(type: :fillSketch, ops: dashed_line(lines, o))
end