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: [visad] wire frame reprensation

Hi Fabien-

On 10/13/10 7:02 AM, Fabien Le Floc'h wrote:
Hello,

I am relatively new to Visad and would like to display a 3d surface in
wireframe mode. I know how to do it in colors. How to have wireframe +
colors at the same time?

I currently use DisplayImplJ3D with a FlatField and add a ScalarMap of
Display.RGB to draw the surface in colors.

You can set this in the GraphicsModeControl.setPolygonMode():

Try:

   DisplayJ3D display = new DisplayImplJ3D("foo");
GraphicsModeControlJ3D gmc = (GraphicsModeControlJ3D) display.getGraphicModeControl();
   gmc.setPolygonMode(DisplayImplJ3D.POLYGON_LINE);

Don
--
Don Murray
NOAA/ESRL/PSD and CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/



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