Notifications
Clear all

[Closed] Yet another Morph Target Mirror Script

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”.

1 Reply
1 Reply
(@harefort)
Joined: 1 year ago

Posts: 0

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, …)