|
Applying the modified vertices
Finally, the animate1 handler applies the modified vertex list to the model by setting its vertexList property to the variable pTempVertices , which contains the modified vertices:
-- apply the newly modified vertex list to the model
pModel.meshdeform.mesh[1].vertexlist = pTempVertices
You can manipulate the model's geometry as many times as you like. When you are ready to restore the model to its original state, apply the original geometry that you stored in a separate variable.
|