Hi
I think its because Primitive keeps track of the individual Shape3Ds that
make it up. That way when a transform is applied, Primitive applys it to its
child Shape3Ds. When you detach a part of the primitive it objects and
refuses to work until the removed parts are reattached.
For what you want to do I think your best bet would be to just build the
parts of the shape seperately, parent them all to one group, and add and
detach different faces from the parent transformgroup.
B.D.
>From: Ashish Aggarwal <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [JAVA3D] plz help!
>Date: Mon, 16 Jul 2001 13:37:22 -0700
>
>Hello!
>
>I have a group of objects (like sphere,cylinder, cone
>etc). Here by group, I mean that all these primitives
>can be rotated, translated simultaneously.
>Now, i have written a behavior class, which will
>detach a branch group, to which is attached a
>primitive, from this transformgroup(objTran) and
>attach it to another transform group (objTran1), which
>was already added to the scene graph. Now, the
>requirement is that the picked up objects must make a
>different group i.e while one is interacting with one
>group there
>should not be any affect on other group and vice
>versa.
>
>I am attaching my program and scenegraph image with
>this mail. Please try to run the program and click on
>any primitive and read the messages in cosole window.
>It is showing very weird behavior like number of
>children before and after detachments doesn't satisfy
>the requirements. I don't know why. If you click on
>different primitives every time you run the program it
>shows the same value, i don't know why.
>
>The requirement is that after picking an object, it
>should be a part of different group and shouldn't
>respond to mouse events of first group. But I am not
>able to achieve this.
>
>Please explain the weird behavior of number of
>children
>before and after detachment.I really need help in this
>
>
>Thanks
>
>=====
>Graduate Research Assistant
>Virtual/Augmented and Rapid Prototyping Lab
>University of Missouri-Rolla
>Rolla, MO 65401
>573-341-6815 (O)/573-308-1380 (R)
>FAX: 573-341-6815
>
>__________________________________________________
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail
>http://personal.mail.yahoo.com/
><< Doc1.doc >>
><< SimplePicking.java >>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".