def get_piece_bool(num, dict):
'''Uses a vertex number to find the right bool array
as created by divide_garment()'''
count = 0
nums = dict['garment_pieces']['numbers_array']
for i in nums:
if np.in1d(num, i):
return count
count += 1
评论列表
文章目录