Hi Desiree,
> okay, it is surely better to use double, so I changed all values in my
> example programm to double, see attached file.
> There is just one line I am confused about:
>
> // Get the Set samples to facilitate the calculations
> //float[][] set_samples = domain_set.getSamples( true );
>
> It is not possible to change that to double, but I am not using
> set_samples somewhere else anyway, what is this method doing? I can't
> remember, why I put it there in the first place.
The "set_samples = domain_set.getSamples()" method call returns
the locations of the samples created by your call to the Linear2DSet
constructor. However, since set_samples is not used in your program,
this call is not necessary.
> The results still exists: I am loosing points. I changed to the current
> visad.jar, which did not change anything at all.
> I put 4*5 = 20 points in and the result is 3*3 = 9 in the display.
If you remove your call to:
dispGMC.setPolygonMode(1);
then you will see a nice 4 x 5 texture. However, for efficiency's
sake the geometry under the texture is generally resampled to a lower
reso;ution. So when you do call dispGMC.setPolygonMode(1) you see
that lower resolution geometry. To see your natural geometry, add
the call:
dispGMC.setTextureEnable(false);
Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706
hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html