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
This error occurs when the vecA and vecB vectors are parallel, resulting in a zero vectorC after the cross product. I fixed it by adding the following lines after vecC is computed, on line 57 of planes.py:
(57.) # if vectors A and B are pallel vector C will be a zero vector resulting in a divide by zero error in the next step
(58.) if np.any(vecC) == False:
(59.) continue
Encountered the error when plane fitting:
/usr/local/lib/python3.8/dist-packages/pyransac3d/plane.py:59: RuntimeWarning: invalid value encountered in true_divide
vecC = vecC / np.linalg.norm(vecC)
Code Attached:
def plane_fit(pointList):
[X, Y, Z, I] = pointList
p_arr = np.empty((len(X), 3), float)
P_color_arr = np.empty((0, 3), int)
The text was updated successfully, but these errors were encountered: