Misterysword@[EMAIL PROTECTED]
wrote:
> Hi!! I have got points like this (in a file): X=2,923, Y=-0,232,
> Z=7,890.
>
> In Java 3D, points must be between -1 and 1 (in a intervalo [-1,1]).
> How do you change this points to intervale [-1,1] ????
I think you have to figure out, what dimensions your points have, so what
is
your maximum in each dimension. After that you can normalize (word
correct?) the point into the intervall of [-1,1] where 1 (-1) is the
relative maximum.
depends also on the position of your figure. if it should be shown in
center
with best fit, you can take the one biggest absolute value of x,y or z and
divide all coordinates with that scalar.
Greetings
Tim


|