ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rpiece.c
(Generate patch)

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.31 by greg, Thu Nov 30 09:26:20 1995 UTC vs.
Revision 2.32 by greg, Thu Nov 30 14:21:48 1995 UTC

# Line 415 | Line 415 | rpiece()                       /* render picture piece by piece */
415                  pview.horiz = ourview.horiz / hmult;
416                  pview.vert = ourview.vert / vmult;
417                  break;
418 +        case VT_CYL:
419 +                pview.horiz = ourview.horiz / hmult;
420 +                pview.vert = 2.*180./PI*atan(
421 +                                tan(PI/180./2.*ourview.vert)/vmult );
422 +                break;
423          case VT_HEM:
424                  pview.horiz = 2.*180./PI*asin(
425                                  sin(PI/180./2.*ourview.horiz)/hmult );
# Line 522 | Line 527 | int  xpos, ypos;
527          if (fcntl(outfd, F_SETLKW, &fls) < 0)
528                  filerr("lock");
529   #endif
530 +        if (verbose) {                          /* notify caller */
531 +                printf("%d %d done\n", xpos, ypos);
532 +                fflush(stdout);
533 +        }
534          if (syncfp != NULL) {                   /* record what's been done */
535                  sflock(F_WRLCK);
536                  fseek(syncfp, 0L, 2);           /* append index */
# Line 529 | Line 538 | int  xpos, ypos;
538                  fflush(syncfp);
539                                  /*** Unlock not necessary, since
540                  sflock(F_UNLCK);        _exit() or nextpiece() is next ***/
532        }
533        if (verbose) {                          /* notify caller */
534                printf("%d %d done\n", xpos, ypos);
535                fflush(stdout);
541          }
542          if (pid == -1)          /* didn't fork or fork failed */
543                  return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines