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

Comparing ray/src/hd/sm_qtree.c (file contents):
Revision 3.7 by gwlarson, Tue Oct 6 18:18:54 1998 UTC vs.
Revision 3.8 by gwlarson, Wed Nov 11 12:05:39 1998 UTC

# Line 27 | Line 27 | int4 *quad_flag= NULL;
27   extern FVECT Pick_v0[500],Pick_v1[500],Pick_v2[500];
28   extern int Pick_cnt,Pick_tri,Pick_samp;
29   extern FVECT Pick_point[500];
30 + extern int Pick_q[500];
31  
31
32   #endif
33   int Incnt=0;
34  
# Line 578 | Line 578 | qtVisit_tri_edges(qt,b,db0,db1,db2,db,wptr,nextptr,t,s
578      }
579      else
580     {
581 <     func(&qt,f,argptr);
581 > #ifdef TEST_DRIVER
582 >       if(Pick_cnt < 500)
583 >          Pick_q[Pick_cnt++]=qt;
584 > #endif;
585 >       func(&qt,f,argptr);
586       if(QT_FLAG_IS_DONE(*f))
587       {
588         if(!QT_IS_EMPTY(qt))
# Line 799 | Line 803 | qtRoot_trace_ray(qt,q0,q1,q2,peq,orig,dir,nextptr,func
803     VSUB(db,b[1],b[0]);
804    t[0] = HUGET;
805    convert_dtol(b[0],bi);
806 <   if(et[1]<0.0 || (fabs(b[1][0])>(FTINY+1.0)) ||(fabs(b[1][1])>(FTINY+1.0)) ||
806 >   if(et[1]<0.0 ||(fabs(b[1][0])>(FTINY+1.0))||(fabs(b[1][1])>(FTINY+1.0)) ||
807        (fabs(b[1][2])>(FTINY+1.0))||(b[1][0] <-FTINY) ||
808        (b[1][1]<-FTINY) ||(b[1][2]<-FTINY))
809       {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines