diff --git a/rmf_building_map_tools/building_map/floor.py b/rmf_building_map_tools/building_map/floor.py index 4392e568..78b9ed45 100644 --- a/rmf_building_map_tools/building_map/floor.py +++ b/rmf_building_map_tools/building_map/floor.py @@ -133,7 +133,7 @@ def triangulate_polygon(self, polygon, triangles): plt.plot(poly_x, poly_y, 'b', linewidth=4) elif geom.geom_type == 'MultiPolygon': - for poly in list(geom): + for poly in list(geom.geoms): self.triangulate_polygon(poly, triangles) elif geom.geom_type == 'GeometryCollection':