Re: Question

Hi Kolossov,

> I would like to get some information about Visad programs.
> I try to do simple program based on Visad. Unfortunately I did not successed
> to create 3d body with connections between points using Irregular3DSet. I
> just can see color points with nothing between. I want to see this lines or
> color polygons.
> Probably you can help me.
> The code of the program is attached to mail.
> Thank you for your help.

You see points because your data are sampled by an Irregular3DSet
with manifold dimension = 3. If you used a Linear3DSet, they
would be volume rendered. Except that your data lie on a 2-D
plane, and are organized in a regular 2-D grid.

To see your data displayed as polygons, replace your
Irregular3DSet with a Gridded3DSet with manifold dimension = 2.
The constructor for this is:

  public Gridded3DSet(MathType type, float[][] samples, int lengthX, int 
lengthY)

where samples is the same as in your mytest.java, and lengthX
lengthY = 10.

Good luck,
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


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