I've done something similar with a TriangleFanArray by creating a PointArray
where all points are initially located at the origin. Then based on user
input the points are re-positioned one by one until all points have been
used. In my case the user input was the arrow keys...  (forward, right turn,
left turn, undo)

The PointArray is re-sent to a TriangleFanArray with each change allowing
the user to see the wall as it's built.

This method would work with groups of points as well, also with different
GeometryArrays so you should be able to essentially extrude a tube, although
that would be a lot more complex.

Hope this helps
Don


-----Original Message-----
From: Ahmed Shakil [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 8:54 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Modifying Objects at runtime


Hey guys. I need some info on how to be able to modify an object (maybe made
of LineArray) at runtime.
lets say I want to let a user build a maze. At user clicks the line grows or
new lines are added to the object. or if it can be a cylinder that would be
perfect.

Thanks in advance

Ahmed

===========================================================================
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".

===========================================================================
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".

Reply via email to