Skip to content

Commit

Permalink
Handle geometry collections
Browse files Browse the repository at this point in the history
I was trying a clean build of RMF Demos and ran into a type error when
trying to compile maps. This PR fixes the type error. I'm not sure what
triggered it in the first place TBH.

Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Mar 11, 2024
1 parent 613e8ab commit 7a18141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmf_building_map_tools/building_map/floor.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def triangulate_polygon(self, polygon, triangles):
# to be clipped to lie within the original floor polygon
# for example, if a long triangle crossed a concave region
# and you end up with >=1 polygons and >=1 points or edges.
for item in geom:
for item in geom.geoms:
if item.geom_type == 'Polygon':
self.triangulate_polygon(item, triangles)

Expand Down

0 comments on commit 7a18141

Please sign in to comment.