|03 March 2009||#1|
Senior Technical Artist
Join Date: Jan 2007
Yet another Morph Target Mirror Script
When I was scripting it this one, I thought it might be something new, cause I couldn't find anything on Scriptspot. But today (when I finished it) I recognized that there are quite a bunch of theese scripts here on CGTalk and that it's an old hat. :/ Nevertheless I like to throw yet another Morphtarget-Mirror Script out so the rest of the world could use it or not. It works also on asymmetrical meshes... minor asymmetrical ones
By the way I'm wondering if there's a way to calculate the symmetrical points within a runtime < OČ. Any ideas?
|03 March 2009||#2|
Join Date: Sep 2006
Originally Posted by kogen: By the way I'm wondering if there's a way to calculate the symmetrical points within a runtime < OČ. Any ideas?
I assume you find symmetrical vertices by looking for the closest vertex to the coordinates [-X,Y,Z] of another vertex in the mesh.
So anything that dismisses distant vertices helps.
Sorting by Z-coordinate and then only compare until Z-distance is greater than threshold. Simple and helps somewhat.
For operations that need to find vertices by position very often, you can use your favourite space partitioning algorithm (i.e. octree, kd-tree, ...)
|Thread Closed share thread|