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

Comparing ray/src/hd/sm_del.c (file contents):
Revision 3.8 by gwlarson, Mon Dec 28 18:07:34 1998 UTC vs.
Revision 3.9 by gwlarson, Tue Jan 5 16:52:37 1999 UTC

# Line 47 | Line 47 | int t_id;
47       to id because the vertices can no longer
48       point to tri id as being the first triangle pointer
49    */
50 +  SM_SAMPLE_TRIS(sm)--;
51    if(!SM_IS_NTH_T_BASE(sm,t_id))
52    {
53 <    SM_SAMPLE_TRIS(sm)--;
53 >
54 > #if 0
55      if(SM_IS_NTH_T_NEW(sm,t_id))
56        smNew_tri_cnt--;
57 + #endif
58    }
59    smClear_tri_flags(sm,t_id);
60  
61    smFree_tri(sm,t_id);
59
60 #if 0
61  {
62    int i;
63    TRI *t;
64    for(i=0; i < SM_NUM_TRI(sm);i++)
65    {
66      t = SM_NTH_TRI(sm,i);
67      if(!T_IS_VALID(t))
68        continue;
69      if(T_NTH_NBR(t,0)==t_id || T_NTH_NBR(t,1)==t_id || T_NTH_NBR(t,2)==t_id)
70        eputs("Stale pointer: smDelete_tri()\n");
71    }
72  }
73 #endif
62   }
63  
64  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines