Skip to content

Commit

Permalink
modify draw_xyz_list and draw_pq_list to be compatible with numpy arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
bbean23 committed Aug 12, 2024
1 parent a228de3 commit 37b8193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opencsp/common/lib/render/View3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def draw_xyz_list(
if len(input_xyz_list) > 0:
# Construct the point list to draw, including closing the polygon if desired.
if close and (len(input_xyz_list) > 2):
xyz_list = input_xyz_list.copy()
xyz_list = [xyz for xyz in input_xyz_list]
xyz_list.append(input_xyz_list[0])
else:
xyz_list = input_xyz_list
Expand Down Expand Up @@ -1070,7 +1070,7 @@ def draw_pq_list(

# Construct the point list to draw, including closing the polygon if desired.
if close and (len(input_pq_list) > 2):
pq_list = input_pq_list.copy()
pq_list = [pq for pq in input_pq_list]
pq_list.append(input_pq_list[0])
else:
pq_list = input_pq_list
Expand Down

0 comments on commit 37b8193

Please sign in to comment.