42 |
|
|
43 |
|
#define FEQ(a,b) ((a)-(b) <= 1e-7 && (b)-(a) <= 1e-7) |
44 |
|
|
45 |
< |
#define set_minlog() (min_log10 = log10(overall_min + 1e-5) - .1) |
45 |
> |
#define set_minlog() overall_min = (overall_min < 1e-5) ? 1e-5 : overall_min; \ |
46 |
> |
min_log10 = log10(overall_min) - .1 |
47 |
|
|
48 |
|
char *progname; |
49 |
|
|
513 |
|
if (front_comp) { |
514 |
|
printf( |
515 |
|
"\n!genrev %s Front \"R*sin(A*t)\" \"R*cos(A*t)\" %d -e \"R:%g;A:%f\" -s | xform -t %g 0 0\n", |
516 |
< |
sph_fmat, nsegs, sph_rad, 0.495*PI, sph_xoffset); |
516 |
> |
sph_fmat, nsegs, sph_rad, 0.5*PI, sph_xoffset); |
517 |
|
printf("\nvoid brighttext front_text\n3 helvet.fnt . FRONT\n0\n"); |
518 |
|
printf("12\n\t%f %f 0\n\t%f 0 0\n\t0 %f 0\n\t.01 1 -.1\n", |
519 |
|
-.22*sph_rad + sph_xoffset, -1.4*sph_rad, |
529 |
|
if (back_comp) { |
530 |
|
printf( |
531 |
|
"\n!genrev %s Back \"R*cos(A*t)\" \"R*sin(A*t)\" %d -e \"R:%g;A:%f\" -s | xform -t %g 0 0\n", |
532 |
< |
sph_bmat, nsegs, sph_rad, 0.495*PI, -sph_xoffset); |
532 |
> |
sph_bmat, nsegs, sph_rad, 0.5*PI, -sph_xoffset); |
533 |
|
printf("\nvoid brighttext back_text\n3 helvet.fnt . BACK\n0\n"); |
534 |
|
printf("12\n\t%f %f 0\n\t%f 0 0\n\t0 %f 0\n\t.01 1 -.1\n", |
535 |
|
-.22*sph_rad - sph_xoffset, -1.4*sph_rad, |