Re: still dashed lines...

Hi Bill,

sorry, but I don't get it... perhaps I'm a little stupid ;-)

I changed the program as you said, but now I don't get all contours und nor
dashed lines neither labels....
What's wrong???

Please help me!!

Thanks!!

Astrid

----- Original Message -----
From: "Bill Hibbard" <hibbard@xxxxxxxxxxxxxxxxx>
To: "Astrid Wonner" <Astrid@xxxxxxxxx>
Sent: Tuesday, March 27, 2001 3:01 PM
Subject: Re: still dashed lines...


> Hi Astrid,
>
> > I think, I've done what you said... I hope it ;-)
> > Would you please take a look at the program again? Because I get the
same as
> > before...
>
> This would work, except for many bugs in your P3_09_.java.
> First:
>
>   vals_ff.resample(domain_set_gridded);
>
> needs to be:
>
>   vals_ff = (FlatField) vals_ff.resample(domain_set_gridded);
>
> and needs to be moved after:
>
>   vals_ff.setSamples( values , false );
>
> Then, your:
>
>   domain_set_gridded = new Gridded2DSet(domain_tuple, grid,4);
>
> constructs a Gridded2DSet with manifold dimension = 1. It needs
> to be:
>
>   domain_set_gridded = new Gridded2DSet(domain_tuple, grid,4, 4);
>
> and your loops:
>
>     float[][] grid = new float[2][4];
>     for (int i = 0; i<4; i++)
>     { for (int j = 0; j<4; j++)
>       { grid[0][i] = i;
>         grid[1][j] = j; }}
>
> have many bugs. It needs to be:
>
>     float[][] grid = new float[2][16];
>     for (int i = 0; i<4; i++)
>     { for (int j = 0; j<4; j++)
>       { grid[0][i + 4 * j] = i;
>         grid[1][i + 4 * j] = j; }}
>
> Then the 4 x 4 is too coarse a sampling, you need to try 16 x 16.
>
> Finally, you still won't see dashes with a base = 0.0. Try
> base = 2.0f.
>
> 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

Attachment: P3_09_.java
Description: JavaScript source

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