Hi:

I have question  in Using PositionPathInterpolator,

the code fragment  1 in my program is :
---------------------------- 1
-----------------------------------------
Transform3D TF = new Transform3D();
Transform3D t1 = new Transform3D();
TF.set(new Vector3d(0.0, 5.0, 0.0));   /// change the oriented point
t1.rotY(Math.PI/2);                             /// rotate the view axis

TF.mul(t1);
TransformGroup TG = new TransformGroup(TF);

TG.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
TG.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);

---------------------------- 1
-----------------------------------------

and I can change the view    +Z to  -Z  --->  -X to +X

but , When I using the    "PositionPathInterpolator" class
the  view plane is become to the Java 3D original view +Z to -Z

the code fragment 2 is :

-------------------------------2----------------------------------------

Alpha alpha = new Alpha(-1, 10000);
Transform3D axisOfRotPos = new Transform3D();
AxisAngle4f axis = new AxisAngle4f(1.0f,0.0f,0.0f,0.0f);
axisOfRotPos.set(axis);

float[] knots = {0.0f, 0.33f, 0.66f,1.0f};
Point3f[] positions = new Point3f[4];

positions[0]= new Point3f(0.0f,5.0f,0.0f);
positions[1]= new Point3f(-5.0f,5.0f,0.0f);
positions[2]= new Point3f(-10.0f,5.0f,0.0f);
positions[3]= new Point3f(-5.0f,5.0f,0.0f);

PositionPathInterpolator PosPath = new PositionPathInterpolator(alpha,
TG, axisOfRotPos, knots, positions);
PosPath.setSchedulingBounds(new BoundingSphere());
BG.addChild(PosPath);

-------------------------------2----------------------------------------

Did I make any mistakes ?

By the way, the Constructor of  PositionPathInterpolator is  :
Public PositionPathInterpolator(Alpha alpha,TransformGroup
target,Transform3D axisOfTranslation,float[] knots,Point3f[] positions)
What is the purpose of the "Transform3D axisOfTranslation" ?
and How to give the value of  "Transform3D axisOfTranslation" ?

Frank

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