Class: Rough::Fillers::Dot

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

Instance Method Summary collapse

Constructor Details

#initialize(helper) ⇒ Dot

Returns a new instance of Dot.



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

def initialize(helper)
  @helper = helper
end

Instance Method Details

#fill_polygons(polygon_list, o) ⇒ Object



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

def fill_polygons(polygon_list, o)
  o2 = o.merge(hachure_angle: 0)
  lines = ScanLineHachure.polygon_hachure_lines(polygon_list, o2)
  dots_on_lines(lines, o2)
end