Ignore:
Timestamp:
May 11, 2009, 4:39:13 PM (15 years ago)
Author:
gah
Message:

Initial commit of new flow visualization command structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/dxReader.cpp

    r1384 r1429  
    162162    }
    163163    return new Rappture::Unirect3d(x0, x0 + dx * nx, nx, y0, y0 + dy * ny, ny,
    164                                    z0, z0 + dz * nz, nz, nValues, values);
     164                                   z0, z0 + dz * nz, nz, nValues, values, 3);
    165165}
    166166
    167167
     168#ifdef notdef
    168169/*
    169170 * Load a 3D vector field from a dx-format file
     
    363364    return true;
    364365}
     366#endif
    365367
    366368/* Load a 3D volume from a dx-format file
     
    744746    while (!fin.eof()) {
    745747        fin.getline(line, sizeof(line) - 1);
    746         fprintf(stderr, "line is %s\n", line);
    747748        if (fin.fail()) {
    748749            result.error("error in data stream");
     
    840841        }
    841842    }
    842     fprintf(stderr, "found nx=%d ny=%d, nz=%d, x0=%f, y0=%f, z0=%f\n",
    843             nx, ny, nz, x0, y0, z0);
    844843    // read data points
    845844    if (fin.eof()) {
     
    869868                int nindex = iz*nx*ny + iy*nx + ix;
    870869                field.define(nindex, dval[p]);
    871                 fprintf(stderr,"nindex = %i\tdval[%i] = %lg\n", nindex, p,
    872                         dval[p]);
    873870                fflush(stderr);
    874871                nread++;
     
    11771174    while (!fin.eof()) {
    11781175        fin.getline(line, sizeof(line) - 1);
    1179         fprintf(stderr, "line is %s\n", line);
    11801176        if (fin.fail()) {
    11811177            result.addError("line \"%s\"error in data stream");
     
    12731269    }
    12741270
    1275     fprintf(stderr, "found nx=%d ny=%d, nz=%d, x0=%f, y0=%f, z0=%f\n",
    1276             nx, ny, nz, x0, y0, z0);
    12771271    // read data points
    12781272    if (fin.eof()) {
Note: See TracChangeset for help on using the changeset viewer.