Ignore:
Timestamp:
10/02/06 19:09:48 (18 years ago)
Author:
gumbau
Message:

Fixed degenerates in LodStripsFixed?

File:
1 edited

Legend:

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

    r1541 r1552  
    6060        } 
    6161 
     62 
    6263        update          =       -1; 
    6364        increment       =       (float)30.0     /       increment; 
     
    148149                                         
    149150 
    150                                         /* 
    151                                         cDatos.push_back(p0); 
    152                                         cDatos.push_back(r); 
    153  
    154                                         r       =       0; 
    155                                         k       =       long(cStripsT.size()-r-3); 
    156                                         */ 
     151                                         
     152                                        //cDatos.push_back(p0); 
     153                                        //cDatos.push_back(r); 
     154 
     155                                        //r     =       0; 
     156                                        //k     =       long(cStripsT.size()-r-3); 
     157                                         
    157158                                        long auxp0, auxr; 
    158159                                        //regLOD.strip= t; 
     
    669670        upb(percent); 
    670671 
    671         //      6 min.   
    672672        this->OrdenarModeloVQSLIM(upb); 
    673673 
     
    677677        for(i = 0; i < this->TOTALTIRAS; i++) 
    678678        { 
    679                 t = long(this->cStrips[i].size()); 
    680                  
     679                t = long(this->cStrips[i].size());               
    681680                if (t > max) 
    682681                        max     = t; 
     
    879878 
    880879                num_vert        =       0; 
    881                  
     880 
     881                // load the strips list          
    882882                for     (i = 0; i < this->mGeoMesh->mSubMeshCount; i++) 
    883883                { 
     
    891891                                        Index   *aux    =       this->mGeoMesh->mSubMesh[i].mStrip[j]; 
    892892 
    893                                         /* 
     893                                        // remove strip degenerates (first indices) except for the first (DEG!) 
    894894                                        if (j != 0) 
    895895                                        { 
    896896                                                // La primera tira no empieza por índices repetidos. 
    897                                                 aux     =       aux+1; 
    898  
     897                                                aux     = aux+1; 
    899898                                                indice_acum++; 
    900899                                        } 
    901                                         */ 
    902  
     900                                         
    903901                                        if (j+1 < this->mGeoMesh->mSubMesh[i].mStripCount) 
    904902                                        { 
     
    915913                                                } 
    916914 
    917                                                 //tira.pop_back(); 
     915                                                // DEG!: remove strip degenerates (last indices) except for the last strip 
     916                                                tira.pop_back(); 
    918917 
    919918                                                this->cStrips.push_back(tira); 
Note: See TracChangeset for help on using the changeset viewer.