Ignore:
Timestamp:
09/29/06 11:19:25 (18 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

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

    r1526 r1541  
    326326 
    327327                Orden.vQslimNext        =       theStep.mV0; 
    328                 Orden.vQslim            =       theStep.mV1; 
     328                Orden.vQslim                    =       theStep.mV1; 
    329329                Orden.obligatory        =       theStep.obligatory; 
    330                 Orden.vLS                       =       i; 
    331  
    332                 Orden.x                         =       theStep.x; 
     330                Orden.vLS                                       =       i; 
     331 
     332                Orden.x                                 =       theStep.x; 
    333333                Orden.vLSNext           =       -1; 
    334334                Orden.cambio            =       "n"; 
     
    337337        } 
    338338         
    339  
    340339        update          =       -1; 
    341340        increment       =       (float)(10.0) / (float)(Ordenacion.size()); 
     
    362361 
    363362                cVerts[OrdvQslim].Next  =       -1; 
    364  
    365363        } 
    366364 
     
    569567        int vertexCount         =       (int)this->cVerts.size(); 
    570568        int changesCount        =       (int)this->cCambios.size(); 
    571         int dataCount           =       (int)this->cDatos.size(); 
     569        int dataCount                   =       (int)this->cDatos.size(); 
    572570        int cambiosCount        =       this->TOTALCAMBIOS; 
    573         int size                        =       changesCount*sizeof(LODData) +  
    574                                 (vertexCount + dataCount + cambiosCount + 4)*sizeof(int) + 
    575                                 CHUNK_OVERHEAD_SIZE; 
    576  
    577         FILE *f = fopen(filename.c_str(),"ab"); 
    578  
    579         unsigned short chunkid = 0xabcd; 
    580         fwrite(&chunkid,sizeof(unsigned short),1,f);     
     571        int size                                        =       changesCount*sizeof(LODData) 
     572                                                                                        + 
     573                                                                                        (vertexCount + dataCount + cambiosCount + 4) 
     574                                                                                        * 
     575                                                                                        sizeof(int) 
     576                                                                                        + 
     577                                                                                        CHUNK_OVERHEAD_SIZE; 
     578 
     579        FILE *f =       fopen(filename.c_str(),"ab"); 
     580 
     581        unsigned short chunkid  =       0xabcd; 
     582 
     583        fwrite(&chunkid,sizeof(unsigned short),1,f); 
    581584        fwrite(&size,sizeof(unsigned long),1,f); 
    582585 
    583         // VERTICES 
     586        // VERTICES. 
    584587        fwrite(&vertexCount, sizeof(int), 1, f); 
    585         for(size_t      i = 0; i < this->cVerts.size(); i++) 
    586         { 
    587                 int auxv = cVerts[i].Next; 
     588 
     589        for (size_t     i = 0; i < this->cVerts.size(); i++) 
     590        { 
     591                int auxv        =       cVerts[i].Next; 
    588592                fwrite(&auxv, sizeof(int), 1, f); 
    589593        } 
    590          
     594 
    591595        //      CSTRIPS. 
    592596        this->TOTALINDICES      =       0; 
    593597         
    594598        for(size_t      i = 0; i < this->cStrips.size(); i++) 
     599        { 
    595600                this->TOTALINDICES += int(this->cStrips[i].size()); 
     601        } 
    596602 
    597603        //      lines starting with a d. 
Note: See TracChangeset for help on using the changeset viewer.