Guest User

Untitled

a guest
Feb 18th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. basis = np.array([[a1, a2, a3],
  2. [b1, b2, b3],
  3. [c1, c2, c3]])
  4.  
  5. for i in range(vox.shape[0]):
  6. for j in range(vox.shape[1]):
  7. for k in range(vox.shape[2]):
  8. p = np.dot(basis, np.array([i, j, k]))
  9.  
  10. if np.dot(p, q) > 0.0:
  11. desired_vox_indices.append([i, j, k])
Add Comment
Please, Sign In to add comment