|
Python API 2.0 Reference
|
Inheritance diagram for OpenMaya.MMeshIntersector:Public Member Functions | |
| def | __init__ () |
| def | create () |
| def | getClosestPoint () |
Static Public Member Functions | |
| def | __new__ () |
Properties | |
| isCreated = property(...) | |
Provides methods for efficiently finding the closest point on the surface of a mesh. An octree algorithm is used to find the closest point.
| def OpenMaya.MMeshIntersector.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
| def OpenMaya.MMeshIntersector.create | ( | ) |
create(mesh, matrix) -> self Creates the internal data required by the intersector. It is a compute-heavy operation and should only be called when necessary. mesh (MObject) - the mesh to be used matrix (MMatrix) - transformation to use to bring points into the mesh's object space.faceIds (list) - the faces of the mesh to be passed to the intersector
| def OpenMaya.MMeshIntersector.getClosestPoint | ( | ) |
getClosestPoint(referencePoint, maxDistance=sys.float_info.max) -> MPointOnMesh Finds the closest point within 'maxDistance' of the reference point (MPoint) which lies on the surface of the mesh. The reference point will first be transformed by the matrix passed in the create() call, so if, for example, you want to specify reference points in world space then the matrix passed to create() should provide the mapping from world space to the mesh's object space. Returns an MPointOnMesh object if a closest point is found, or None if no closest point is found (e.g. referencePoint is not within maxDistance of the mesh). Raises ValueError if create() has not yet been called for this intersector.
|
static |
True if the intersector has been created, False otherwise.