Skip to Main Content

Updating Geometry

843799Nov 20 2001 — edited Nov 20 2001
I'm writing an application which must plot a 3D curve. It has 3 panels, each of which has a 2D projection of the curve (xy, xz, yz). Moving the points on the panels will change the properties of the underlying 3D curve.
When I start the application, The 3D curve is shown correctly, but when I move the points, the 3D curve doesn't change.
I have added a custom behavior to the BranchGroup, which is woken up with a postId. This occurs every time the user moves the points on the 2D panels.
The behavior has references to the 3 lines making up the curve, and in the processStimulus, it calls an updatePoints method on each line, passing it the new coordinates.
The line object's updatePoints method calls setGeometry(createGeometry...) to update the underlying geometry of the line.
All the methods get called correctly (i.e. when the points are moved, the behavior's processStimulus is called, and the updatePoints methods of each line are called.)
No exceptions are thrown. However, the view of the 3D curve doesn't change!!!
Any idea why this happens?
As a test, I added a rotation to the behavior when the points are moved, and this rotation took place, but still the curve didn't change!!


Post Details
Added on Nov 20 2001