Skip to main content

Add Point or Line at runtime by mouseclicking on Canvas3D

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2005-07-06

Hello everybody,
I am pretty new to java3d and need help in adding a Point at runtime to a Canvas3D. Its now 3 days that I am trying to solve this problem but
always occurs a new problem. I have build a canvas3d and added a coordinate system composed of 3 linearrays. Now when trying to add points by mouseclicking on the
canvas3d I get sometimes an "only a Branchgroup can be added" - Error and when trying to solve this other things do not work.
I would appreciate if someone could write some little working example of how to solve this problem and post it. If possible with point color which are chosen at runtime,

Thanks for any help!