In my particular application I need to perform many intersections, each with a different mesh. After recreating the scene a few hundred times the programm quits with the error message libc++abi: cannot create thread specific key for __cxa_get_globals(). A MWE would be:
import raybender as rb
points = [[0,0,0],[1,0,0],[0,1,0]]
triangles = [0,1,2]
for i in range(1000):
scene = rb.create_scene()
rb.add_triangle_mesh(scene, points, triangles)
rb.release_scene(scene)
print(i)
The code is run in a conda virtual environment on MacOS (M2).