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: mesh mode for a dataset

Hi Tom,

thanks for the answer. It is actually Display.PolygonMode, as in:

display.addReference( dataRef, new ConstantMap[]{new ConstantMap(1.0,Display.PolygonMode)} );

Cheers,

Ugo

Tom Rink wrote:

Hi Ugo,

There's  DisplayRealType.PolygonMode you could use in
a ConstantMap.

TomR

Ugo Taddei wrote:

Hi,

I have a surface. If I want to show only the mesh, I do:

gmcMode.setPolygonMode(DisplayImplJ3D.POLYGON_LINE);

where gmcMode is the graph mode control.

Now, this is valid for a whole display. How do I set the same mode for a given dataset? (I don't wanna name names, but I'm sure Don Murray knew this one. :-)

Thanks,

Ugo






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