Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: Java3D shapes to visad shapes?

> > The only problem I can imagine that might cause incorrect vertex connections
> > is that "GeometryArray sphere_geom" might not be a TriangleArray
>
> On Sun's side it's a javax.media.j3d.TriangleStripArray, I'm not sure how that
> changes things or if they "unstrip" in the accessors for the vertices and
> normals.  I did try feeding the vertices and normals into a visad triangle
> strip array but in that case nothing showed up in the plot at all.

That should have worked, since DisplayImplJ3D.makeGeometry()
can successfully convert a VisADTriangleStripArray into a
TriangleStripArray. In addition to copying the vertices and
normals, did you also copy the colors (if they are non-null)
and especially the stripVertexCounts?

Good luck,
Bill


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