I have a script which is firing alot of rays out to detect and record collision point coordinates in a mesh. At the moment i really need to find a way to speed up the whole raytracing process as much as possible as there are hundreds of rays and it takes 30 seconds so far to complete firing.
However this bit of code:
mesh.allIntersections( point, dir, None, None, False, om.MSpace.kWorld, 10000, False, None, True, hitPoints, None, None, None, None, None )
apparently needs a mesh lookup accelerator, to speed up the raytracing. Which gets added to one of the parameters in the allIntersections() thing. If anyone knows how to implement and accelerator could you please advise me. Bear in mind that i am not that confident at programming, the mfnmesh documentation for accelerators seems really confusing to me.