Skip to content

Commit

Permalink
Handle geometry collections (#476)
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]>
Co-authored-by: Yadunund <[email protected]>
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
2 people authored and luca-della-vedova committed Nov 8, 2024
1 parent 6480104 commit 7d67455
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 7d67455

Please sign in to comment.