Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

Cage opened this issue on Feb 24, 2010 · 592 posts


Spanki posted Thu, 25 March 2010 at 5:03 PM

Ok, I really need to run, but if you're feeling lucky, you can try out this version (save attached file as "_tdmt.pyd")...

This version has a new routine that not only checks the single closest vertex's polygons, it checks the polygons of the entire list of closest verts.  This should pick up a few more 'hits' that were being missed with the previous code (there are some pathological cases where the 'closest' vertex's polygons were not necessarily the right ones, but this code will check the other close verts as well).

To use this new code, simply replace this line:

hitpoint = mesh2.mesh.CorrelateVertToNearSurface( vi, mesh1.mesh, close_index[0] )

...with this line:

hitpoint = mesh2.mesh.CorrelateToNearVertList( vi, mesh1.mesh, close_index )

...note that the only difference is the name of the routine and passing in the entire list, instead of the first vertex from that list.

I have other things I want to try, but this is the first step.

Cheers,

Keith

Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.