Open Maya Ray Intersect


#1

Hey guys,
Need a small help with Ray Intersection.
Firstly, is there a direct way thru maya.cmds or pymel to cast a ray rather than using openmaya.closestIntersection or allIntersections?

Secondly, Even if there is this only way out, The openmaya.closestIntersection working fine with me but I want it to intersect only selected faces rather than taking the full object surface. Is it possible?

Finally, how could I pass a ray diagonally as we can now give directions only like [0,0,-1]. If I give like [1,0,-1], the result is not accurate. What is the proper way of doing it.

Thanks