C++ API Reference
MMeshIsectAccelParams Class Reference

Class to define parameters for accelerated intersection operations. More...

#include <MFnMesh.h>

Detailed Description

Class to define parameters for accelerated intersection operations.

Use MFnMesh::uniformGridParams() or MFnMesh::autoUniformGridParams() to create one of these to pass into the allIntersections(), closestIntersection(), and anyIntersection() methods.

Note that independently of wether you use explicit uniform grid parameters or automatic ones, the mesh keeps an internal cache of data about the mesh intersections. This internal data can become invalid when the mesh is modified. For example, a skinned mesh changes when the skin deformation is applied or modified. You need to explicitly clear the accelerated intersection internal data by calling MFnMesh::freeCachedIntersectionAccelerator().

Examples:
intersectCmd/intersectCmd.cpp.

The documentation for this class was generated from the following files: