PDA

View Full Version : Yet another Morph Target Mirror Script


kogen
03-16-2009, 12:03 AM
Hi,

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?



Cheers "ko'gen".

harefort
03-16-2009, 09:37 AM
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, ...)

CGTalk Moderation
03-16-2009, 09:37 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.