Replace the Mesh of an Object

Started by dear_stephen, May 29, 2007, 01:07:05 PM

Previous topic - Next topic

dear_stephen

Hi

I would like to change the form of an object in realtime, however in doing so there may be new verticies added.

For this reason I can't use the GenericVertexController.

What actions do I need to additionally perform in order to do something like...

Object3D newObject = getAnObjectWithADifferentForm();
oldObject.setMesh(newObject.getMesh());



Stephen

EgonOlsen

You can't do that. If the mesh size changes, it's actually a new object and has to be treated like one.