Author Topic: Merge objects  (Read 1268 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Merge objects
« on: July 06, 2011, 09:13:18 pm »
In method Object3D.mergeAll(objects) does not matter how is object translated and rotated?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Merge objects
« Reply #1 on: July 06, 2011, 09:40:12 pm »
No. It merges the objects in object space, not in world space.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Merge objects
« Reply #2 on: July 06, 2011, 09:49:27 pm »
Could you add same method, but merge in world space? :) or how to do it?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Merge objects
« Reply #3 on: July 07, 2011, 12:25:33 am »
You can make rotations and translations permanent by calling rotateMesh() and translateMesh() on the object in question. Then merge the objects.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Merge objects
« Reply #4 on: July 07, 2011, 05:29:07 pm »
thanks :)