Skip to content

Commit

Permalink
convert list to np.array
Browse files Browse the repository at this point in the history
  • Loading branch information
Koyaani committed Mar 25, 2022
1 parent 72351bf commit b28203b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py3dtiles/points/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def is_point_far_enough(points, tested_point, squared_min_distance):
@jit(cache=True, nogil=True)
def xyz_to_child_index(xyz, aabb_center):
test = np.greater_equal(xyz - aabb_center, 0).astype(np.int8)
return np.sum(np.left_shift(test, [2, 1, 0]), axis=1)
return np.sum(np.left_shift(test, np.array([2, 1, 0])), axis=1)


@njit("int32[:](float32[:,:], int32[:], float32[:], float32[:], int32)", cache=True, nogil=True)
Expand Down

0 comments on commit b28203b

Please sign in to comment.