I'm not sure what your direct cause is. To increase
memory look at
http://www.j3d.org/faq/running.html#memory
I have a question, though, why are you using a for and
a switch to execute your commands? Just execute the
commands directly sequentially, since that is what is
going to happen anyway... I.E.:
objRoot.addChild(makeOneGraph(k,hix));
objRoot.addChild(makeOneGraph(k,viis));
Vector inter = new Vector();
inter = processIntersection(hix,viis);
objRoot.addChild(makeOneGraph(k,inter));
...
--- "Brobbey,Isaac (neuron)"
<[EMAIL PROTECTED]> wrote:
> Dear all:
>
> i am in trouble with java3D again.
> i have created a branch group with six children.each
> of the children is also
> a branch group containing a scene to be displayed,
> something like
>
> scene = createSceneGraph(vis);
> scene.compile();
>
> pickCanvas = new PickCanvas(canvas, scene);
>
>
pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
> pickCanvas.setTolerance(0.0f);
> canvas.setCursor(new Cursor(Cursor.HAND_CURSOR));
>
> view = u.getViewer().getView();
>
> ViewingPlatform viewingPlatform =
> u.getViewingPlatform();
> viewingPlatform.setNominalViewingTransform();
>
> OrbitBehavior orbit = new
> OrbitBehavior(canvas,
>
> OrbitBehavior.STOP_ZOOM);
> orbit.setSchedulingBounds(bounds);
>
> viewingPlatform.setViewPlatformBehavior(orbit);
>
> u.addBranchGraph(scene);
>
>
> then the method createSceneGraph(vector vector) will
> create six branch
> groups like shown below:
>
> private BranchGroup createSceneGraph(Vector hix)
> {
> BranchGroup objRoot = new BranchGroup();
>
> objRoot.setCapability(BranchGroup.ALLOW_DETACH);
>
>
objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_READ);
>
>
objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
>
>
objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
>
>
>
> for(int k =0;k<6;k++)
> {
> switch( k )
> {
>
> case 0:
> objRoot.addChild(makeOneGraph(k,hix));
> break;
>
> case 1:
> objRoot.addChild(makeOneGraph(k,viis));
> break;
>
> case 2:
> Vector inter = new Vector();
> inter = processIntersection(hix,viis);
> objRoot.addChild(makeOneGraph(k,inter));
> break;
>
> case 3:
> Vector comp1 = new Vector();
> comp1= processComplement(hix,viis);
> objRoot.addChild(makeOneGraph(k,comp1));
> break;
>
> case 4:
> Vector comp2 = new Vector();
> comp2= processComplement(viis,hix);
> objRoot.addChild(makeOneGraph(k,comp2));
> break;
>
> case 5:
> Vector uni = new Vector();
> uni= processUnion(viis,hix);
> objRoot.addChild(makeOneGraph(k,uni));
> break;
>
>
> }
>
>
> }
>
> return objRoot;
> }
>
> method makeOneGraph is too long to show here, but
> this is how i create six
> branchgroups. At the point of getting ready to show
> the display, it prints
> "out of memory error." I dont know what can possibly
> cause this to happen.i
> have only two days to finish this.I am basically
> out of ideas.I dont know
> where to look to correct this.the error is shown
> below.
> Any help will be greatly appreciated.
>
>
>
>
>
>
> Creating massValTG with mass 2991160 and position 20
> Capability = true
> creating....
> Exception in thread "main"
> java.lang.OutOfMemoryError
>
> C:\brobbwork\Proteome>
>
>
>
>
> Isaac
=====
See you later,
Brandon
-------------------------------
"Don't take it too seriously it's just life we'll win in the end." Superchic[k]
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
===========================================================================
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".