diff --git a/map_machine/figure.py b/map_machine/figure.py index 867cb06..8c2ec60 100644 --- a/map_machine/figure.py +++ b/map_machine/figure.py @@ -24,10 +24,14 @@ class Figure(Tagged): ) -> None: super().__init__(tags) - self.inners: list[list[OSMNode]] = list(map(make_clockwise, inners)) - self.outers: list[list[OSMNode]] = list( - map(make_counter_clockwise, outers) - ) + if inners and outers: + self.inners: list[list[OSMNode]] = list(map(make_clockwise, inners)) + self.outers: list[list[OSMNode]] = list( + map(make_counter_clockwise, outers) + ) + else: + self.inners = inners + self.outers = outers def get_path( self, flinger: Flinger, offset: np.ndarray = np.array((0.0, 0.0))