Skip to content

Commit b0939c1

Browse files
author
pv
committed
Fix example file
1 parent de6033a commit b0939c1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/examples/example_intersections.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@
5656
hits_per_rays = intersection_rays_mesh(rays, trimesh.to_vertices_and_faces())
5757

5858
intersection_points = []
59-
for hit in hits_per_rays:
60-
if hit:
61-
pt, idx, u, v, w = hit[0]
62-
intersection_points.append(pt)
59+
for hits_per_ray in hits_per_rays:
60+
if hits_per_ray:
61+
for hit in hits_per_ray:
62+
pt, idx, u, v, w = hit
63+
intersection_points.append(pt)
6364

6465
# ==============================================================================
6566
# Visualisation

0 commit comments

Comments
 (0)