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
Hi,
I encountered the issue that a ray can pass through two adjacent triangles without being detected by ray.intersects_location(). Using here ray.ray_pyembree.RayMeshIntersector().
Find example below:
def test_between_triangles(self):\n
mesh = trimesh.Trimesh(vertices=[[-1, -1, 0], [-1, 1, 0], [1, 1, 0], [1, -1, 0]], faces=[(0, 1, 2), (2, 3, 0)])
ray_origin, ray_direction = np.array([[0, 0, 1]]), np.array([[ 0, 0, -1]])
pts_xyz, _, _ = mesh.ray.intersects_location(ray_origin, ray_direction, multiple_hits=False)
assert len(pts_xyz) == 1, 'No intersection found on the edge between the two triangles'
I figured out, that if you do not scale the scene/ray, this error does not occur.
Hi,
I encountered the issue that a
ray
can pass through two adjacent triangles without being detected byray.intersects_location()
. Using hereray.ray_pyembree.RayMeshIntersector()
.Find example below:
I figured out, that if you do not scale the scene/ray, this error does not occur.
Is this issue already solved/adressed?
Thanks for helping out.
Tried versions:
The text was updated successfully, but these errors were encountered: