I would like to get the information of closest vertex on a cube to the
given point. I'm unsure of the type of argument I'm suppose to put as
the second argument of the getClosestPoint()
Please help!
def test():
cube = cmds.polyCube()
pointInfo = om.MPointOnMesh()
point = om.MPoint( 0, 8, 3)
cubeWS = om.MMeshIntersector()
result = cubeWS.getClosestPoint (point, pointInfo, 10)
position = [(result.x), (result.y), (result.z)]
return (position)
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe