Ignore:
Timestamp:
05/24/06 13:48:26 (18 years ago)
Author:
gumbau
Message:
 
Location:
GTP/trunk/Lib/Geom/shared/GeoTool/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshLoader.cpp

    r980 r985  
    4141        GeometryElement         aux; 
    4242        int                                                             i; 
    43         bool                                                    encontrado; 
     43        bool                                                    found; 
    4444        VertexElementType       vType; 
    4545 
    4646        i                                               =       0; 
    47         encontrado      =       false; 
     47        found   =       false; 
    4848 
    4949        //              VertexElementSemantic vSemantic; 
     
    5555 
    5656        vType   =       static_cast<VertexElementType>(aux.type); 
    57  
    58         /* 
    59         if (vType == VET_FLOAT3) 
    60         { 
    61                 printf("%u es float3 ",aux.type); 
    62         } 
    63  
    64         if (vType == VET_FLOAT4) 
    65         { 
    66                 printf("%u es float4 ",aux.type); 
    67         } 
    68  
    69         if (vType == VET_FLOAT2) 
    70         { 
    71                 printf("%u es float2 ",aux.type); 
    72         } 
    73         */ 
    7457 
    7558        // unsigned short semantic; // VertexElementSemantic 
     
    9477        fread(&aux.index,sizeof(unsigned short),1,f); 
    9578 
    96         while ((i < list.size()) && (!encontrado)) 
     79        while ((i < list.size()) && (!found)) 
    9780        { 
    9881                if (list[i].source==source) 
    9982                { 
    100                         encontrado      =       true; 
     83                        found   =       true; 
    10184                } 
    10285                else 
     
    10689        } 
    10790 
    108         if (encontrado) 
     91        if (found) 
    10992        { 
    11093                list[i].list.push_back(aux); 
     
    169152        float                                           aux; 
    170153        int                                                     k; 
    171         bool                                            encontrado; 
     154        bool                                            found; 
    172155        float                                           x,y,z; 
    173156        SubMesh                                 *geoSubMesh; 
     
    176159        i                                               =       0; 
    177160        k                                               =       0; 
    178         encontrado      =       false; 
     161        found   =       false; 
    179162         
    180163        if (option == GEOMESH_BUILD) 
     
    215198        } 
    216199 
    217         while ((i<list.size())&&(!encontrado)) 
     200        while ((i<list.size())&&(!found)) 
    218201        { 
    219202                if (list[i].source      ==      bindIndex) 
    220203                { 
    221                         encontrado      =       true; 
     204                        found   =       true; 
    222205                } 
    223206                else 
     
    227210        } 
    228211 
    229         if (encontrado) 
     212        if (found) 
    230213        { 
    231214                for (k  =       0;      k < numVertices;        k++) 
     
    455438        } 
    456439         
    457         /* 
    458         if (idx32bit) 
    459         { 
    460                 printf("\tSon 32 bits por indice\n"); 
    461         } 
    462         else 
    463         { 
    464                 printf("\tSon 16 bits por indice\n"); 
    465         } 
    466         */ 
    467  
    468         //Sumo uno a los vertices porque en el obj no puede hacer un vertice 0 
     440 
    469441        if (idx32bit) 
    470442        { 
     
    712684                                        //                      <<      endl; 
    713685 
    714                                         //OSCAR 
    715686                                        readMeshBoneAssignment(f, geoMesh, option); 
    716687 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshSaver.cpp

    r980 r985  
    308308 
    309309         
    310         //      Calc the size in bytes of the geometry chunk. 
     310        //      Calculate the size in bytes of the geometry chunk. 
    311311        size    =       calcGeometrySize(vertexBuffer); 
    312312                 
     
    530530} 
    531531 
    532 //      Calc the mesh size in bytes. 
     532//      Calculate the mesh size in bytes. 
    533533size_t GeoMeshSaver::calcMeshSize(const Mesh    *geoMesh) 
    534534{ 
    535535        size_t size = CHUNK_OVERHEAD_SIZE; 
    536536 
    537         // Num shared vertices 
     537        // Number of shared vertices 
    538538        size += sizeof(uint32); 
    539539 
     
    602602} 
    603603 
    604 //      Calc the geometry size in bytes. 
     604//      Calculate the geometry size in bytes. 
    605605size_t GeoMeshSaver::calcGeometrySize(const VertexBuffer* vertexBuffer) 
    606606{ 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp

    r980 r985  
    197197 
    198198//--------------------------------------------------------------------------- 
    199 // JGA 
    200199//      Set the color to the submesh sumbmeshIndex 
    201200//--------------------------------------------------------------------------- 
     
    428427                activeCCW(); 
    429428                 
    430                 //      Init start time for FPS. 
     429                //      Initialize start time for FPS. 
    431430                mStartTime      =       clock(); 
    432431 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp

    r980 r985  
    10061006                                        simplifyEdgeCollapse(); 
    10071007 
    1008                                         //      Create the qslim simplification sequence. 
    1009                                         createQslimSequence(); 
     1008                                        //      Create the simplification sequence. 
     1009                                        createSimplificationSequence(); 
    10101010 
    10111011                                } 
     
    10441044                                        simplifyEdgeCollapse(); 
    10451045 
    1046                                         //      Create the qslim simplification sequence. 
    1047                                         createQslimSequence(); 
     1046                                        //      Create the simplification sequence. 
     1047                                        createSimplificationSequence(); 
    10481048                                         
    10491049                                        delete  mMeshSimplifier; 
     
    11681168 
    11691169                                        //      Loads a simplification sequence file. 
    1170                                         oMeshSimpSequence->Load(Serializer("mqslimSequence.txt",Serializer::READ)); 
     1170                                        oMeshSimpSequence->Load(Serializer("SimplifSequence.txt",Serializer::READ)); 
    11711171 
    11721172                                        //      If the simplification sequence and the mesh exist. 
     
    13831383        mMeshReduction->set_visible(); 
    13841384 
    1385         // JGA 
    13861385        // Allows floating point. 
    13871386        mMeshReduction->type(fltk::FloatInput::FLOAT); 
     
    19161915        if (mGeometryBased->value()) 
    19171916        { 
    1918                 simplificationState     =       QSLIM; 
     1917                simplificationState     =       MESHSIMP; 
    19191918                mMeshSimplifier                 = new GeometryBasedSimplifier(mGeoMesh, 
    19201919                                                                                                                                                                                                                        progress_function); 
     
    20502049 
    20512050//--------------------------------------------------------------------------- 
    2052 //      Create a simplification sequence of the QSLIM method. 
    2053 //--------------------------------------------------------------------------- 
    2054 void    GeoMeshViewUI::createQslimSequence() 
     2051//      Create a simplification sequence of the simplification method. 
     2052//--------------------------------------------------------------------------- 
     2053void    GeoMeshViewUI::createSimplificationSequence() 
    20552054{ 
    20562055        MeshSimplificationSequence      *secsimpl; 
     
    20592058         
    20602059        secsimpl->putMeshName(nombremesh); // Nombre del mesh para guardar la secuencia de simplificación 
    2061         secsimpl->Save(Geometry::Serializer("mqslimSequence.txt",Serializer::WRITE)); 
     2060        secsimpl->Save(Geometry::Serializer("SimplifSequence.txt",Serializer::WRITE)); 
    20622061 
    20632062        delete  secsimpl; 
Note: See TracChangeset for help on using the changeset viewer.