I haven't been following the list closely for the last couple of weeks, so I don't know if this problem has already been discussed....
I have a CAD like Java 3D program. You can select a predefined polyhedron to be displayed in a scene (cube, or tetrahedron, etc). For any polyhedron, you can display ("turn on/off") the polyhedron's 1) Vertex spheres 2) edges as lines 3) edges as cylinders 4) faces as planes. I accomplish this by defining a Switch node and attaching a BranchGroup for each of the 4 cases listed above. (These BranchGroups contains the geometry Shape definitions.) You can also combine two or more polyhedra together to define what I call a "combined object". To accomplish this, I define a new scene object (BranchGroup)"BG2" and attach it to the live scene graph "BG1". Then I detach the Switch node for a polyhedron from "BG1" and attach it to "BG2". The Problem: When I do this, the polyhedron displays all 4 features list above, *even when the Switch bits have not been set* to display all 4 features. For example, if only (3) above it set to be displayed, so the polyhedron only displays as cylinder edges, then I detach it from BG1 and add it to BG2, the polyhedron will be displayed with vertex spheres, and face planes showing in addition to the cylinder edges. I print out the Switch bit right after the I add it to BG2, System.out.println("BS: "+theLastSO.SNPropertiesBS); and it shows only one bit set (3), yet all 4 features are actually being displayed. I even reset the Switch bit after detach and re-attach theLastSO.SNProperties.setChildMask(theLastSO.SNPropertiesBS); yet the polyhedron still is displayed with all 4 features showing. I don't recall having this problem before I started using Beta 2. Anyone else seeing a problem when a Switch is detached from a BranchGroup and then added to another BranchGroup? (Actually, I have a BranchGroup just above the Switch and it is this BG I am detaching and re-attaching, but I thought another BG would make the description too confusing to follow.) Cheers, Bob Gray =========================================================================== 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".