Hello all, 

im kind of stupid when it comes to using the api, but i needed it to check for 
intersections in my mesh when firing rays out from a particular point. In my 
script i need to be firing a hell load of rays. Probably around 500 by the end. 

my program currently takes 23 seconds to process,  and i have only finished 
about 10% of its full size in the end. About 16 seconds is taken up with the 
firing of the rays. It takes 0.04 seconds roughly to fire each ray. Which adds 
up quikly.

Does anyone know a clever way of streamlining the mFnMesh allIntersections 
thingy, maybe an alternative method. I just need to have something that takes a 
position and a vector and returns the coords of the interesection, 

any help would be great, 
Thanks, 
Sam

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f2f09172-b12b-4db6-9212-06e18740f8c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to