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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.28 by greg, Tue Feb 25 02:47:23 2003 UTC vs.
Revision 2.29 by greg, Fri Apr 18 17:29:22 2003 UTC

# Line 90 | Line 90 | int  ambincl = -1;                     /* include == 1, exclude == 0 */
90  
91   static RAY  thisray;                    /* for our convenience */
92  
93 < static void  oputo(), oputd(), oputv(), oputl(), oputL(),
93 > static void  oputo(), oputd(), oputv(), oputl(), oputL(), oputc(),
94                  oputp(), oputn(), oputN(), oputs(), oputw(), oputm();
95  
96   static void  ourtrace(), tabin();
# Line 234 | Line 234 | register char  *vs;
234                          *table++ = oputl;
235                          castonly = 0;
236                          break;
237 +                case 'c':                               /* local coordinates */
238 +                        *table++ = oputc;
239 +                        break;
240                  case 'L':                               /* single ray length */
241                          *table++ = oputL;
242                          break;
# Line 429 | Line 432 | RAY  *r;
432  
433   static void
434   oputo(r)                                /* print origin */
435 < register RAY  *r;
435 > RAY  *r;
436   {
437          (*putreal)(r->rorg[0]);
438          (*putreal)(r->rorg[1]);
# Line 439 | Line 442 | register RAY  *r;
442  
443   static void
444   oputd(r)                                /* print direction */
445 < register RAY  *r;
445 > RAY  *r;
446   {
447          (*putreal)(r->rdir[0]);
448          (*putreal)(r->rdir[1]);
# Line 449 | Line 452 | register RAY  *r;
452  
453   static void
454   oputv(r)                                /* print value */
455 < register RAY  *r;
455 > RAY  *r;
456   {
457          COLR  cout;
458          
# Line 468 | Line 471 | register RAY  *r;
471  
472   static void
473   oputl(r)                                /* print effective distance */
474 < register RAY  *r;
474 > RAY  *r;
475   {
476          (*putreal)(r->rt);
477   }
# Line 476 | Line 479 | register RAY  *r;
479  
480   static void
481   oputL(r)                                /* print single ray length */
482 < register RAY  *r;
482 > RAY  *r;
483   {
484          (*putreal)(r->rot);
485   }
486  
487  
488   static void
489 + oputc(r)                                /* print local coordinates */
490 + RAY  *r;
491 + {
492 +        (*putreal)(r->uv[0]);
493 +        (*putreal)(r->uv[1]);
494 + }
495 +
496 +
497 + static void
498   oputp(r)                                /* print point */
499 < register RAY  *r;
499 > RAY  *r;
500   {
501          if (r->rot < FHUGE) {
502                  (*putreal)(r->rop[0]);
# Line 500 | Line 512 | register RAY  *r;
512  
513   static void
514   oputN(r)                                /* print unperturbed normal */
515 < register RAY  *r;
515 > RAY  *r;
516   {
517          if (r->rot < FHUGE) {
518                  (*putreal)(r->ron[0]);
# Line 535 | Line 547 | RAY  *r;
547  
548   static void
549   oputs(r)                                /* print name */
550 < register RAY  *r;
550 > RAY  *r;
551   {
552          if (r->ro != NULL)
553                  fputs(r->ro->oname, stdout);
# Line 547 | Line 559 | register RAY  *r;
559  
560   static void
561   oputw(r)                                /* print weight */
562 < register RAY  *r;
562 > RAY  *r;
563   {
564          (*putreal)(r->rweight);
565   }
# Line 555 | Line 567 | register RAY  *r;
567  
568   static void
569   oputm(r)                                /* print modifier */
570 < register RAY  *r;
570 > RAY  *r;
571   {
572          if (r->ro != NULL)
573                  if (r->ro->omod != OVOID)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines