Author Topic: Replace the Mesh of an Object  (Read 3216 times)

Offline dear_stephen

  • byte
  • *
  • Posts: 32
  • 'day mate
    • View Profile
    • Fluidforms ~ Individual Design
Replace the Mesh of an Object
« on: May 29, 2007, 01:07:05 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Replace the Mesh of an Object
« Reply #1 on: May 29, 2007, 02:09:49 pm »
You can't do that. If the mesh size changes, it's actually a new object and has to be treated like one.