Hai All,

When I am executing the following Code I am getting the following error
java.lang.OutOfMemoryError      <<no stack trace available>>

How can optimize this code and Improve the Performance.

/***********

TransformGroup ballStickTransGrp = new TransformGroup();
Transform3D translate = new Transform3D();
Appearance app = new Appearance();

 for(int i = 0; i < 24000; i++)
 {
            v3f.x = 0.0f;
            v3f.y = 0.0f;
            v3f.z = 0.0f;

            translate.setTranslation(v3f);

            TransformGroup transformGroup = new TransformGroup(translate);
            transformGroup.addChild(new Sphere(0.5f,
Sphere.GENERATE_NORMALS, 10, app));

            ballStickTransGrp.addChild(transformGroup);
  }

***************/


Thanks and Regards
Ravi Sankar

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