-
Notifications
You must be signed in to change notification settings - Fork 233
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
Raycaster bug : wrong face index #4443
Comments
interestingly - in this scenario
from mathutils import Vector
RL = [[(Vector((0.0, 0.0, -1.0)), Vector((0.0, 0.0, 1.0)), 0, 1.0)]]
F = [[r[2] if r[2] else -1 for r in L] for L in RL]
print(F)
>>> [[-1]] https://docs.blender.org/api/current/mathutils.bvhtree.html?highlight=mathutils%20bvhtree#mathutils.bvhtree.BVHTree.ray_cast we will have to check against |
nice catch @ArpegorPSGH |
If we stick to pep8 - https://pep8.org/#programming-recommendations |
even better |
In one of my node trees when veryfying proper working, I found out that when hitting the first polygon of the mesh, -1 gets returned instead of 0, while everything else is normal. Attached is a MWE.
Bug raycaster_2022_04_28_17_11.zip
The text was updated successfully, but these errors were encountered: