Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690