NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: IndexOutOfBoundsException with RendererJ3D

Desiree, I said:

> Another solution may be to extend DefaultRendererJ3D and
> override its doTransform() method to be exactly the same
> code as DefaultRendererJ3D, except to copy the contents
> of 'branch' before returning it (to RendererJ3D.doAction()
> which then adds it to the live scene graph).

Actually, the override implementation of doTransform() can
simply be:

  public BranchGroup doTransform()
         throws VisADException, RemoteException {
    BranchGroup branch = super.doTransform();
    // now extract the GeometryArrays from branch
    // . . .
    return branch;
  }

Cheers, Bill


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: