Cage opened this issue on Feb 24, 2010 · 592 posts
Spanki posted Sat, 27 March 2010 at 4:48 PM
Very nice. Can you do a test for me? Just below this line:
hitpoint = mesh2.mesh.CorrelateToNearVertList( vi, mesh1.mesh, close_index )
...try adding these 2 lines....
if not hitpoint.Valid:
hitpoint = mesh2.mesh.CorrelateToNearVertList( vi, mesh1.mesh, close_index, 0 )
...in other words, if it fails with the averaged normals, try again without averaging, then just let it fall through as usual. The idea is that the non-averaged normal might get a hit where the averaged ones are failing. If this gives better results on the eyelid area, I can do the multiple testing internally.
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.