Dan, 

Thanks for the reply.
Linear interpolation is a very reasonable idea, but what I need is
simple representation of cube at time 0 and time 1.
Locations of cube at both time is known. 
I sort of want to know how to set control panel containing time slide so
that I can switch time from 1 to 0 and vise versa. Then cube changes its
location according to time selection. 

Thank you and I will be waiting for the replies,
Juw Won

On Wed, 2003-02-19 at 02:43, Daniel Pfenniger wrote:
> Hi,
> 
> If X1 represents the 8x3 matrix of the first cube corner positions
> and X2 the second one, at each intermediate time between 0 and 1
> you can linearly interpolate the cube position by
> 
> X = X1*(1-t) + X2*t
> 
> 
> I am not expert enough in opendx to tell you how to implement it,
> but my guess is to have a box with the initial X1, another one with X2
> and a compute box function of t calculating X.
> 
> 
>       Dan
> 
> 
>   Juw Won Park wrote:
> > Hi all.
> > 
> > The file I describe here has 16 points. 
> > First 8 points represent original cube and second 8 points represent
> > moved cube. 1st,2nd, and 3rd column represents x,y,and z respectively.
> > 4th column represents time. Here I have only two values, time0 and
> > time1.
> > 
> > ==================
> > 0 0 0 0
> > 1 0 0 0
> > 1 0 1 0
> > 0 0 1 0
> > 0 1 0 0
> > 1 1 0 0
> > 1 1 1 0
> > 0 1 1 0
> > 1 1 1 1
> > 2 1 1 1
> > 2 1 2 1
> > 1 1 2 1
> > 1 2 1 1
> > 2 2 1 1
> > 2 2 2 1
> > 1 2 2 1
> > ===================
> > 
> > When I import it, it shows original cube and I stuck right there :(
> > How can I change time (in other word, animate) to show moved cube?
> > 
> > I imported it as scattered data, with 2 variables. One is location
> > 3-vector, and the other is time scalar. 
> > 
> > Any comment would be appreciated.
> > 
> > Regards,
> > Juw Won Park
> > 
> 
> 
> 
> -- 
> °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
> Prof. Daniel Pfenniger
> Geneva Observatory, University of Geneva
> CH-1290 Sauverny, Switzerland
> [EMAIL PROTECTED] | tel:+41 (22) 7552611 | fax:+41 (22) 7553983
> °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
> 

Reply via email to