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.

Re: Reducing z axis range causes vectors to draw outside of cube.

  • To: John Osborne <oz@xxxxxxxxxxxxx>
  • Subject: Re: Reducing z axis range causes vectors to draw outside of cube.
  • From: Bill Hibbard <billh@xxxxxxxxxxxxx>
  • Date: Tue, 4 Mar 2003 13:51:38 -0600 (CST)
Hi John,

This is a mystery, since visad/examples/Test61.java tests this
situation (volume clipped in X, Y and Z by SelectRange) and
it works correctly.

I think your problem may relate to low resolution sampling
along the Z axis. The actual clip isn't to the exact value
passed to setRange(), but is to the nearest sample value.

Good luck,
Bill

On Tue, 4 Mar 2003, John Osborne wrote:

> I support 3D vector (u,v,w components) and volume visualizations from
> scientific data sets. I also allow users to change the range of the axes
> to reduce the density of the data plotted. This works fine for changes
> to the x and y axes but fails for changes to the z axis. Well it doesn't
> exactly fail--the z axis range is reduced correctly but the vectors and
> area of volume that should be clipped by the new axis range are still
> drawn *outside* the axes cube. To set the range of  an axis I do (for
> example):
>
> zMap.setRange(min, max);
> zRangeMap.setRange(min, max);
>
> Where zMap and zRangeMap are Scaler maps:
>
> zMap = new ScalarMap(Z, Display.ZAxis);
> zRangeMap = new ScalarMap(Z, Display.SelectRange);
>
> As I said, the above code works for the x and y axes--data outside the
> axis range are clipped from the 3D display. However, data outside the z
> axis range are NOT clipped from the display.
>
> Perplexed in Seattle,
>
> JO
>
>


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