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

Comparing ray/src/hd/sm.c (file contents):
Revision 3.10 by gwlarson, Mon Dec 28 19:30:27 1998 UTC vs.
Revision 3.11 by gwlarson, Wed Dec 30 13:44:15 1998 UTC

# Line 568 | Line 568 | insert_tri(argptr,root,qt,q0,q1,q2,t0,t1,t2,dt10,dt21,
568    /* If the set size is below expansion threshold,or at maximum
569       number of quadtree levels : just add */
570    optr = qtqueryset(qt);
571 <  if(QT_SET_CNT(optr) < QT_SET_THRESHOLD || (n >= QT_MAX_LEVELS))
571 >  if(QT_SET_CNT(optr) < QT_SET_THRESHOLD || (n > (QT_MAX_LEVELS-2)))
572      return(qtadduelem(qt,t_id));
573    /* otherwise: expand node- and insert tri, and reinsert existing tris
574       in set to children of new node
# Line 769 | Line 769 | smTris_swap_edge(sm,t_id,t1_id,e,e1,tn_id,tn1_id,add_p
769                         !T_IS_VALID(SM_NTH_TRI(sm,T_NTH_NBR(tb,1))) ||
770                         !T_IS_VALID(SM_NTH_TRI(sm,T_NTH_NBR(tb,2))))
771            goto Ltri_error;
772 +        /*
773          if(SM_NTH_TRI(sm,T_NTH_NBR(ta,0))==SM_NTH_TRI(sm,T_NTH_NBR(ta,1)) ||
774             SM_NTH_TRI(sm,T_NTH_NBR(ta,0))==SM_NTH_TRI(sm,T_NTH_NBR(ta,2)) ||
775             SM_NTH_TRI(sm,T_NTH_NBR(ta,1))==SM_NTH_TRI(sm,T_NTH_NBR(ta,2)) ||
# Line 776 | Line 777 | smTris_swap_edge(sm,t_id,t1_id,e,e1,tn_id,tn1_id,add_p
777             SM_NTH_TRI(sm,T_NTH_NBR(tb,0))==SM_NTH_TRI(sm,T_NTH_NBR(tb,2)) ||
778             SM_NTH_TRI(sm,T_NTH_NBR(tb,1))==SM_NTH_TRI(sm,T_NTH_NBR(tb,2)) )
779            goto Ltri_error;
780 +          */
781   #endif
782      /* Reset neighbor pointers of original neighbors */
783      n = SM_NTH_TRI(sm,T_NTH_NBR(t,enext));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines