Re: Question: Visualization of Function with Domain Dimension > 2

Hi Mike,

You can visualize you original 'FlatField f', with MathType
((x, y, z) -> w), directly using the mappings:

  display.addMap(new ScalarMap(x, Display.XAxis));
  display.addMap(new ScalarMap(y, Display.YAxis));
  display.addMap(new ScalarMap(z, Display.ZAxis));
  ScalarMap iso_map = new ScalarMap(w, Display.IsoContour);
  display.addMap(iso_map);

This will give you and iso-surface.  You can change the
iso-level using:

  ContourControl iso_control = (ContourControl) iso_map.getControl();
  iso_control.setSurfaceValue(level);

You can also display the intermediate derived 'FlatField fplane'
from my code, with MathType ((x, y, z) -> w) but sampled on a
plane (i.e., manifold dimension = 2) using the mappings:

  display.addMap(new ScalarMap(x, Display.XAxis));
  display.addMap(new ScalarMap(y, Display.YAxis));
  display.addMap(new ScalarMap(z, Display.ZAxis));
  ScalarMap rgb_map = new ScalarMap(w, Display.RGB);
  display.addMap(rgb_map);
  ColorControl rgb_control = (ColorControl) rgb_map.getControl();
  rgb_control.setTable(color_table);

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html

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