New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with return_ids when checking intersections between a mesh and line. #774
Comments
After some quick debugging, a fast fix (for my case when i just want/have one intersection per line) is just to change the line 2189 in mesh.py to:
That'd basically output the id. |
Thanks for reporting this. |
I switched it to just |
Oh, i just actually "read" your answer, i was literally gonna do that, add the ids in the same return as the points (i'm basically running the code twice to get the points and the ids). Thanks! |
Hi!
This issue is something new, probably related to some recent update, because this exact same code worked flawlessly for me for a long time.
I'm using the
mesh.intersect_with_line()
function to check the intersection between a mesh and a line. If i do it without thereturn_ids
argument, it works, returning the intersection point:array([[18444.52929688, 11806.72460938, 2475. ]])
But when i add the
return_ids = True
argument, i'm getting the following error:ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (1, 2) + inhomogeneous part.
Any idea what could this be? As i said, this worked perfect for me, never an error, but just today this popped.
Edit: I think it's some numpy related issue.
The text was updated successfully, but these errors were encountered: