Hi all,
I want to draw a Quad using two TriangleArray .I want to locate the Quad centrality ( 0, 0 , 0 ).
I used the code below :
 
Point3d[] coords = { new Point3d( 1.0, 0.0, 0.0 ),
                              new Point3d( 0.0, 0.0, -1.0 )
                              new Point3d( -1.0, 0.0, 0.0 )
                              new Point3d( -1.0, 0.0, 0.0 )
                              new Point3d( 0.0, 0.0, 1.0 )
                              new Point3d( 1.0, 0.0, 0.0 )
    };
    Color3f[] colors = {
      new Color3f(Color.white),
      new Color3f(Color.white),
      new Color3f(Color.white),
      new Color3f(Color.white),
      new Color3f(Color.white),
      new Color3f(Color.white)
  };
    TransformGroup myTg=new TransformGroup();
    Shape3D shape1=new Shape3D();
    triangleArray.setColors(0,colors);
    triangleArray.setCoordinates(0,coords);
    shape1.setGeometry(triangleArray);
    myTg.addChild(shape1);
    branchGroup.addChild(myTg);
 
But nothing appears on the screen.and when I change the Z_Axis' to Zero it works.
How can I do this ? and what is the problem with this coordinate ?
 
Regards,
Saeed 


Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone. =========================================================================== 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