You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 153 to 156:
length_ij = np.linalg.norm(normal_ij, axis=1)
length_ik = np.linalg.norm(normal_ik, axis=1)
normal_ij /= np.stack((length_ij, length_ij), axis=1)
normal_ik /= np.stack((length_ik, length_ik), axis=1)
The length_ij and length_ik are easily be zero in offgrid alogn the 45 degrees hypotenuse. Request to add 0.000000001 prevent divided by zero.
length_ij = np.linalg.norm(normal_ij, axis=1)+0.00000001
length_ik = np.linalg.norm(normal_ik, axis=1)+0.00000001
normal_ij /= np.stack((length_ij, length_ij), axis=1)
normal_ik /= np.stack((length_ik, length_ik), axis=1)
To do so, I can easily to translate irregular patterns.
The text was updated successfully, but these errors were encountered:
Line 153 to 156:
length_ij = np.linalg.norm(normal_ij, axis=1)
length_ik = np.linalg.norm(normal_ik, axis=1)
normal_ij /= np.stack((length_ij, length_ij), axis=1)
normal_ik /= np.stack((length_ik, length_ik), axis=1)
The length_ij and length_ik are easily be zero in offgrid alogn the 45 degrees hypotenuse. Request to add 0.000000001 prevent divided by zero.
length_ij = np.linalg.norm(normal_ij, axis=1)+0.00000001
length_ik = np.linalg.norm(normal_ik, axis=1)+0.00000001
normal_ij /= np.stack((length_ij, length_ij), axis=1)
normal_ik /= np.stack((length_ik, length_ik), axis=1)
To do so, I can easily to translate irregular patterns.
The text was updated successfully, but these errors were encountered: