MFnMesh.closestIntersection
Note, I'e been unable to get this to work via maya.OpenMaya, but I have got it to work via maya.api.OpenMaya
Also note the points it reruns are always in internal units (cm) so you may need to convert them to your UI units.
Note, I'e been unable to get this to work via maya.OpenMaya, but I have got it to work via maya.api.OpenMaya
Also note the points it reruns are always in internal units (cm) so you may need to convert them to your UI units.