Skip to content

Commit

Permalink
fix(room2d): Fix bug introduced when capping planar holes in rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Aug 28, 2024
1 parent 1b54815 commit c46fab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dragonfly/room2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -4111,6 +4111,8 @@ def _cap_planar_holes(self, room_polyface, roof_face_i, tolerance):
"""
# join all of the naked edges into closed loops
naked_edges = room_polyface.naked_edges
if len(naked_edges) == 0:
return room_polyface, roof_face_i
joined_loops = Polyline3D.join_segments(naked_edges, tolerance)

# create Face3D from any closed planar loops
Expand Down

0 comments on commit c46fab2

Please sign in to comment.