(Maya recently added the MMeshIntersector <http://download.autodesk.com/us/maya/2009help/API/class_m_mesh_intersector.html>for doing such 'closest-point' calculations using oct-trees)
- Ofer www.mrbroken.com On Tue, Sep 7, 2010 at 10:39 AM, Skarone <[email protected]> wrote: > Hi everyone, I'm very new with python language and the maya Api. > I'm trying to make a similar deformer like stretchMesh. > First off all i saw that has 2 principal parts. > ---------------------------------------------------------------------- > Part One: > An algorithm for simulate a Smooth transition for the vertex movement. > I think is something similar to this... > https://bora.uib.no/bitstream/1956/1683/31/Paper%201.pdf > Its a new method based on laplace smoothing > Its very simple to accomplish but the problem is when we want to > maintain the initial form of the shape. > How we can make this happen? comparing the initial shape with a new > one? mmmm i dont think so. > Volume Maintain? mmm really???? > Well i really have no idea. > ----------------------------------------------------------------- > Part Tow: > Detect if some shape intersect the deformed shape. > Well i think that we can use the mfnmesh.closestIntersection, but we > cant use it in a heavy mesh, so we can make a octree (AABB tree) for > detect intersection between bounding boxes, and then use the > closestIntersection. > > Jason Osipa translate a plugin made in c++ ("the qwrap") to python, > there u can see the power of closestIntersection. > > --------------------------------------------------------------- > Well i realy have no idea o.O . > If someone have some idea, please shear =). > > -- > http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
