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.

general question on FlatField.resample and Irregular3DSet

Hi,

i have tryed to get a volume rendered view of my data. The problem is, that FlatField.resample seems to be in an infinite loop. I think that there possibly is a general problem with the domain which has two surfaces, one outer and one inner. Below you can see the code i have used.

Irregular3DSet domainSet = new Irregular3DSet (domainTuple, pointValues, null, null, null, tri); Linear3DSet remapSet = new Linear3DSet (domainTuple, -10, 10, 41, -10, 10, 41, -10, 10, 41);
FlatField val_ff = new FlatField (funcDomainTemperature, domainSet);
float[][] var = (float[][]) variable.get (0); float[][] data = new float[1][var[0].length];
for(i=0; i<var[0].length; i++)
{
    data[0][i] = var[5][i];
}

val_ff.setSamples (data, false);
val_ff = (FlatField) val_ff.resample (remapSet, Data.WEIGHTED_AVERAGE, Data.INDEPENDENT);
DataReferenceImpl data_ref = new DataReferenceImpl ("data_ref");
data_ref.setData (val_ff);

The domain has 71666 points.

Note to Bill: This is the same example that i'd send to you. I don't know if you have fixed the problem with the triangulation in this code. If not, open TecPlotAdapterno.java and change the line

connectingList[brickCounter][i] = Integer.parseInt ( line.substring ( startIndex, spaceIndex ) );

to

connectingList[brickCounter][i] = Integer.parseInt ( line.substring ( startIndex, spaceIndex ) )-1;

Olav


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