31 float longdim, exag, texag, hmin, hmax, fmin, fmax;
32 int nsurfs, i, *surf_list;
40 for (i = 0; i < nsurfs; i++) {
43 exag = texag > exag ? texag : exag;
48 fmin = hmin - (2. * longdim / exag);
49 fmax = hmin + (3 * longdim / exag);
56 *val = fmin + (fmax - fmin) / 2.0;
64 G_debug(1,
"Nviz_get_exag_height(): value = %f min = %f max = %f", *val,
80 int nsurfs, i, *surf_list;
85 for (i = 0; i < nsurfs; i++) {
88 exag = (texag > exag) ? texag : exag;
98 G_debug(1,
"Nviz_get_exag(): value = %f", exag);
void G_free(void *)
Free allocated memory.
int G_debug(int, const char *,...) __attribute__((format(printf
int * GS_get_surf_list(int *)
Get surface list.
int GS_get_longdim(float *)
Get largest dimension.
void GS_get_zrange_nz(float *, float *)
Get Z extents for all loaded surfaces.
int GS_get_exag_guess(int, float *)
Get exag-value guess.
int Nviz_get_exag_height(double *val, double *min, double *max)
Get view height.
double Nviz_get_exag(void)
Get view z-exag value.