> Problem 1: ... > TransformGroup pointGroup = new TransformGroup(pointPos); > pointGroup.addChild(point); > tg.addChild(pointGroup);//tg is the tranform group passed in > ...} > I got this error message: > "Exception occurred during Behavior execution: > javax.media.j3d.RestrictedAccessException: Group : only a BranchGroup node may be added".
Well, the error is self explaining, isn't it ? You should do: BranchGroup bg = new BranchGroup(); bg.addChild(pointGroup); tg.addChild(bg); It's a pity that you need to introduce an intermediate branch group, but you have to play by the rules. > Problem 2: I displyed a curve with 4 control points on the screen. Then I want to move one point with right mouse button, and display the curve again. The > code I wrote are like this: If you want to change the geometry of a live object, then there is only one way: use geometry by reference and change the geometry only within the updateData method of your GeometryUpdater. See GeometryArray.updateData(GeometryUpdater updater). From your posted code it's not possible to know if you follow that pattern. It is possible that you update only *your* geometry representation, but that is not passed further to the j3d. Cheers, Florin =========================================================================== 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".