Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class PolygonGroup:
  2. def __init__(self, polygons=None):
  3. self.polygons = []
  4. if polygons is not None:
  5. self.polygons.extend(polygons)
  6.  
  7. def apply_transformation(self, transformation):
  8. list(map(lambda x: x.apply_transformation(transformation), self.polygons))
  9.  
  10. def draw_to_svg(self, svg):
  11. list(map(lambda x: x.draw_to_svg(svg), self.polygons))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement