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
while not ok: # TODO this could result in an infinite loop, though very unlikely idx = np.random.randint(len(points)) point, normal = points[idx], normals[idx] ok = normal[2] > -0.1 # make sure the normal is poitning upwards
I want to know why the infinite loop may happen? I found if I set object_count = 1, the infinite loop will happen easily, but if I set object_count as a little big number, the infinite loop won't happen. And I want to know how could I avoid the infinite loop by some engineering method?
The text was updated successfully, but these errors were encountered:
while not ok: # TODO this could result in an infinite loop, though very unlikely idx = np.random.randint(len(points)) point, normal = points[idx], normals[idx] ok = normal[2] > -0.1 # make sure the normal is poitning upwards
I want to know why the infinite loop may happen? I found if I set object_count = 1, the infinite loop will happen easily, but if I set object_count as a little big number, the infinite loop won't happen. And I want to know how could I avoid the infinite loop by some engineering method?
The text was updated successfully, but these errors were encountered: