Changeset 1429 for trunk/packages/vizservers/nanovis/dxReader.cpp
- Timestamp:
- May 11, 2009, 4:39:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/dxReader.cpp
r1384 r1429 162 162 } 163 163 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); 165 165 } 166 166 167 167 168 #ifdef notdef 168 169 /* 169 170 * Load a 3D vector field from a dx-format file … … 363 364 return true; 364 365 } 366 #endif 365 367 366 368 /* Load a 3D volume from a dx-format file … … 744 746 while (!fin.eof()) { 745 747 fin.getline(line, sizeof(line) - 1); 746 fprintf(stderr, "line is %s\n", line);747 748 if (fin.fail()) { 748 749 result.error("error in data stream"); … … 840 841 } 841 842 } 842 fprintf(stderr, "found nx=%d ny=%d, nz=%d, x0=%f, y0=%f, z0=%f\n",843 nx, ny, nz, x0, y0, z0);844 843 // read data points 845 844 if (fin.eof()) { … … 869 868 int nindex = iz*nx*ny + iy*nx + ix; 870 869 field.define(nindex, dval[p]); 871 fprintf(stderr,"nindex = %i\tdval[%i] = %lg\n", nindex, p,872 dval[p]);873 870 fflush(stderr); 874 871 nread++; … … 1177 1174 while (!fin.eof()) { 1178 1175 fin.getline(line, sizeof(line) - 1); 1179 fprintf(stderr, "line is %s\n", line);1180 1176 if (fin.fail()) { 1181 1177 result.addError("line \"%s\"error in data stream"); … … 1273 1269 } 1274 1270 1275 fprintf(stderr, "found nx=%d ny=%d, nz=%d, x0=%f, y0=%f, z0=%f\n",1276 nx, ny, nz, x0, y0, z0);1277 1271 // read data points 1278 1272 if (fin.eof()) {
Note: See TracChangeset
for help on using the changeset viewer.