by the way here is a snippet of my code, the mesh.allIntersections thing is the 
part that is taking too long:

        def returnCollisionPoints(self, point, dir):
        

                sel = om.MSelectionList()
                dag = om.MDagPath()

                sel.add("BASE_MESHShape")
                sel.getDagPath(0,dag)
                
                mesh = om.MFnMesh(dag)

                point = om.MFloatPoint(*point)
                dir = om.MFloatVector(*dir)
                hitPoints = om.MFloatPointArray()

                mesh.allIntersections(
                                point, dir,
                                None, None,
                                False, om.MSpace.kWorld,
                                10000, False,
                                None, 
                                True,
                                hitPoints,
                                None, None,
                                None, None,
                                None
                        )               

                return hitPoints

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/57e80222-31d6-4440-a38e-abc92f8823ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to