Cage opened this issue on Dec 20, 2006 ยท 1232 posts
svdl posted Wed, 20 December 2006 at 1:43 PM
The above method can be quite computationally intensive. You can reduce the amout of polys you have to check per vertex using the same "cube" trick.
Assuming you want to create the morph in V3, then V1 is the "target" shape.
Loop through all polys in the "target" shape, and for each cube that contains at least one of the poly's vertices, add the polygon index to the cube's polygon list.
Now you can check for each Vicki 3 vertex in which "cube" it lies, and you only have to check the Vicki 1 polys that are listed in this cube's polygon list.
This COULD go wrong, especially with vertices that lie close to a "cube" edge. By creating a separate array of "target" cubes - with the same centers as the "source" cubes, but sides twice as long, you can prevent that problem.
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter