138 |
|
|
139 |
|
if (ac-- <= 0) |
140 |
|
return(NULL); |
141 |
+ |
if (verbose < 0) { /* turn off warnings */ |
142 |
+ |
strcpy(cp, "-w- "); |
143 |
+ |
cp += 4; |
144 |
+ |
} |
145 |
|
while (ac-- > 0) { |
146 |
|
strcpy(cp, *av++); |
147 |
|
while (*cp) cp++; |
383 |
|
curparams.vup[1] = 1; |
384 |
|
} |
385 |
|
/* determine sample type/bin */ |
386 |
< |
if (tolower(curparams.hemis[0]) == 'u' | curparams.hemis[0] == '1') { |
386 |
> |
if ((tolower(curparams.hemis[0]) == 'u') | (curparams.hemis[0] == '1')) { |
387 |
|
sprintf(sbuf, "if(-Dx*%g-Dy*%g-Dz*%g,0,-1)", |
388 |
|
curparams.nrm[0], curparams.nrm[1], curparams.nrm[2]); |
389 |
|
binv = savqstr(sbuf); |
871 |
|
curparams.udir[1] *= -1.; |
872 |
|
curparams.udir[2] *= -1.; |
873 |
|
} |
874 |
< |
if (tolower(curparams.hemis[0]) == 'u' | curparams.hemis[0] == '1') |
874 |
> |
if ((tolower(curparams.hemis[0]) == 'u') | (curparams.hemis[0] == '1')) |
875 |
|
curparams.sample_basis = sample_uniform; |
876 |
|
else if (tolower(curparams.hemis[0]) == 's' && |
877 |
|
tolower(curparams.hemis[1]) == 'c') |
1309 |
|
fputs(": -i, -I supported for pass-through only\n", stderr); |
1310 |
|
return(1); |
1311 |
|
} |
1312 |
< |
fmtopt[2] = (sizeof(RREAL)==sizeof(double)) ? 'd' : 'f'; |
1312 |
> |
#ifdef SMLFLT |
1313 |
> |
fmtopt[2] = 'f'; |
1314 |
> |
#else |
1315 |
> |
fmtopt[2] = 'd'; |
1316 |
> |
#endif |
1317 |
|
if (sampcnt <= 0) sampcnt = 10000; |
1318 |
|
} |
1319 |
|
sprintf(sampcntbuf, "%d", sampcnt); |