Class: Rough::Fillers::Hatch

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

Instance Method Summary collapse

Methods inherited from Hachure

#initialize

Constructor Details

This class inherits a constructor from Rough::Fillers::Hachure

Instance Method Details

#fill_polygons(polygon_list, o) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/rough/fillers/hatch.rb', line 8

def fill_polygons(polygon_list, o)
  set = _fill_polygons(polygon_list, o)
  o2 = o.merge(hachure_angle: o.hachure_angle + 90)
  set2 = _fill_polygons(polygon_list, o2)
  set.ops = set.ops + set2.ops
  set
end