Skip to content

Commit

Permalink
fix(polyline): Fix minor bug in Polyline edge case
Browse files Browse the repository at this point in the history
I found a minor bug in the functions used by join_segments.
  • Loading branch information
chriswmackey authored and Chris Mackey committed Mar 7, 2020
1 parent 0e31cef commit a517ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ladybug_geometry/_polyline.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _group_vertices(segments, tolerance):
base_seg = remain_segs[0]
del remain_segs[0]
elif len(remain_segs) == 1: # lone last segment
grouped_verts.append([segments[0].p1, segments[0].p2])
grouped_verts.append([remain_segs[0].p1, remain_segs[0].p2])
del remain_segs[0]
return grouped_verts

Expand Down

0 comments on commit a517ba0

Please sign in to comment.