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 |
|
|