On Oct 17, 2012, at 3:21 PM, Greg Couch wrote:

Salut,

The other trick is to give the VRML model the same model id and submodel id as its associated model.  Then the openState is identical, so there would be no need to copy the transformation matrix.  Again, this only works for rigid rotations.

...and the simplest way to do this is to supply the "sameAs" keyword, with the associated model as the argument, to the openModels.add() or openModels.open() call that you use.

--Eric


                        Eric Pettersen

                        UCSF Computer Graphics Lab

                        http://www.cgl.ucsf.edu