Changeset 1048


Ignore:
Timestamp:
06/22/06 11:11:44 (18 years ago)
Author:
gumbau
Message:

Fixed culling bug

Location:
GTP/trunk/Lib/Geom/shared
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodStripsConstructor.cpp

    r1025 r1048  
    139139                                         
    140140                                        //cStripsT.eraseAtPos(i); 
    141                                         cStripsT.erase(this->cStrips[t].begin()+i); 
     141                                        cStripsT.erase(cStripsT.begin()+i); 
    142142                                        i--; 
    143143                                        r++; 
     
    160160                                if (!sigue && r) 
    161161                                { 
    162                                         if (regLOD.strip == this->MARCAVACIO) 
    163                                         { 
    164                                                 regLOD.strip    =       t; 
    165                                         } 
    166162                                         
    167                                         ++totalRegs; 
    168  
     163 
     164                                        /* 
    169165                                        cDatos.push_back(p0); 
    170166                                        cDatos.push_back(r); 
     
    172168                                        r       =       0; 
    173169                                        k       =       long(cStripsT.size()-r-3); 
     170                                        */ 
     171                                        long auxp0, auxr; 
     172                                        //regLOD.strip= t; 
     173                                        auxp0= p0; 
     174                                        auxr= r; 
     175                                                 
     176                                        if (r==1) 
     177                                        { 
     178                                                while(r>0) 
     179                                                { 
     180                                                        cStripsT.insert(cStripsT.begin()+p0,cStripsT[p0]); 
     181                                                        r--; 
     182                                                } 
     183                                                i=p0; 
     184                                        }                                        
     185                                        else 
     186                                        { 
     187                                                if (r%2) //If r is odd the changes are undone 
     188                                                { 
     189                                                        cStripsT.insert(cStripsT.begin()+p0,cStripsT[p0]); 
     190                                                        r--; 
     191                                                        auxr=r; 
     192                                                } 
     193                                                //listaPos.push_back(pos); 
     194                                                cDatos.push_back(auxp0); 
     195                                                cDatos.push_back(auxr); 
     196                                        if (regLOD.strip == this->MARCAVACIO) 
     197                                        { 
     198                                                regLOD.strip    =       t; 
     199                                        } 
     200 
     201                                        ++totalRegs; 
     202                                        } 
     203 
     204 
     205                                        r= 0; 
     206                                        k=cStripsT.size()-3; 
     207 
    174208                                } 
    175209 
Note: See TracChangeset for help on using the changeset viewer.