TrackBall Object. [message #16233] |
Tue, 13 July 1999 00:00  |
DBorland
Messages: 10 Registered: March 1999
|
Junior Member |
|
|
Greetings,
Does the trackball object always rotate around the natural origin, or will
it rotate around a user defined origin?
What I am doing is I have the viewplane rectangle centered around the
polygon, and the trackball set to [xdim/2.,ydim/2.],xdim/2.. So that it
should be the entire view plane. The problem is that the polygon is
rotating around something other than the center of the viewplane rectangle.
Any hints on how to make this behave?
David Borland
|
|
|
Re: TrackBall Object. [message #16315 is a reply to message #16233] |
Wed, 14 July 1999 00:00  |
Struan Gray
Messages: 178 Registered: December 1995
|
Senior Member |
|
|
DBorland, dborland@egi.com writes:
> Any hints on how to make this behave?
I use the idlexrotator object in the examples/objects directory of
the 5.2 distribution. It won't do scaling or translation, but that's
easily achieved by changing the viewplane rectangle. The idlexrotator
is much better behaved and object-like than the trackball object.
If you take the model you want to plot, and encase it in yet
another model whch is reserved for plotting transformations you can
then swap between rotating in the window's and the object's coordinate
system by changing which of the two models is added to the
idlexrotator object.
Struan
|
|
|