Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690