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.
> 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. Here's a few of the vertices from Sun's triangle strip array. Maybe somebody can see if they are "stripped" or not at a glance? If it is, I imagine it's just a matter of re-inserting the duplicate vertices(?) (Broken into triplets by me:) 0.38268343, 0.9238795, 0.0 0.0, 1.0, 0.0 2.3432602E-17, 0.9238795, 0.38268343 0.70710677, 0.70710677, 0.0 0.38268343, 0.9238795, 0.0 0.5, 0.70710677, 0.5 2.3432602E-17, 0.9238795, 0.38268343 4.3297803E-17, 0.70710677, 0.70710677 0.9238795, 0.38268343, 0.0 0.70710677, 0.70710677, 0.0 0.8001031, 0.38268343, 0.46193975 0.5, 0.70710677, 0.5 0.46193975, 0.38268343, 0.8001031 4.3297803E-17, 0.70710677, 0.70710677 5.6571306E-17, 0.38268343, 0.9238795 1.0, 6.123234E-17, 0.0 0.9238795, 0.38268343, 0.0 0.9238795, 6.123234E-17, 0.38268343 0.8001031, 0.38268343, 0.46193975 0.70710677, 6.123234E-17, 0.70710677 0.46193975, 0.38268343, 0.8001031 0.38268343, 6.123234E-17, 0.9238795 5.6571306E-17, 0.38268343, 0.9238795 6.123234E-17, 6.123234E-17, 1.0 2.3432602E-17, -0.9238795, 0.38268343 0.0, -1.0, 0.0 0.38268343, -0.9238795, 0.0 4.3297803E-17, -0.70710677, 0.70710677 2.3432602E-17, -0.9238795, 0.38268343 0.5, -0.70710677, 0.5 0.38268343, -0.9238795, 0.0 0.70710677, -0.70710677, 0.0 5.6571306E-17, -0.38268343, 0.9238795 4.3297803E-17, -0.70710677, 0.70710677 0.46193975, -0.38268343, 0.8001031 Regards, Steve
visad
archives: