25 int rows,
cols, depths, typeIntern;
35 else if ((fp = fopen(fname,
"w")) ==
NULL)
38 for (z = 0; z < depths; z++)
39 for (y = 0; y < rows; y++) {
40 fprintf(fp,
"z y x %d %d (%d - %d)\n", z, y, 0, cols - 1);
41 for (x = 0; x <
cols; x++) {
44 if (typeIntern == FCELL_TYPE)
45 fprintf(fp,
"%.18f ", *f1p);
47 fprintf(fp,
"%.50f ", d1);
void G3d_getValueRegion(G3D_Map *map, int x, int y, int z, void *value, int type)
Returns in *value the cell-value of the cell with region-coordinate (x, y, z). The value returned is ...
void G3d_fatalError(const char *,...)
This function prints the error message msg, and terminates the program with an error status...
void G3d_writeAscii(void *map, const char *fname)
Writes the cell-values of map in ascii format to file fname. The values are organized by horizontal s...