Skip to content

Commit

Permalink
re-insert actually needed function
Browse files Browse the repository at this point in the history
  • Loading branch information
swhalemwo committed Oct 31, 2020
1 parent 6386edd commit c8ffb82
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions obvz.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,28 @@ def get_edge_point_delta(wd, ht, angle):
dx, dy = opp, adj
return dx, dy

def get_reorder_order_sliced(point_nbr):
"""gets reorder sequence to re-arrange rows in point dist matrix
now focused on extremes rather than points -> reduces number of rows to 25%
"""

test_order = []
# point_nbr = 20

for i in range(point_nbr):
for k in range(2):
test_order.append(i+ (point_nbr*k))

test_order = np.array(test_order)

test_orders = []
for i in range(point_nbr):
test_orders.append((test_order + (point_nbr*2*i)).tolist())

row_order_final = [i for sub_list in test_orders for i in sub_list]
return row_order_final




def rect_points(r):
Expand Down

0 comments on commit c8ffb82

Please sign in to comment.