Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: Cuboid

Hi Eugen,

is there any possibility in VisAD to visualize a cuboid (e.g. width=10,
height=10, length=20) ?
But in a way the length-axis is not compressed to form finally a cube.

If you want to make the length axis appear twice as long as the width and height (to match the 10 x 10 x 20), take a look at Test57 in the examples. You probably want something like:

DisplayImpl display = new DisplayImplJ3D("display");
ProjectionControl pc = display.getProjectionControl();
pc.setAspect(new double[] {1, 1, 2});
//OR
pc.setAspectCartesian(new double[] {1, 1, 2});

Whether you use setAspect vs setAspectCartesian depends on the exact effect you are looking for. For example, setAspect will stretch the scalebars, but setAspectCartesian will not.

-Curtis


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