Ignore:
Timestamp:
03/26/07 08:46:55 (17 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

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

    r2194 r2291  
    3636        static char pattern[] = "*.{jpg|tga|png|bmp}"; 
    3737 
    38         fltk::FileChooser       *fcho = new fltk::FileChooser("",pattern,fltk::FileChooser::CREATE,"Open image file"); 
     38        fltk::FileChooser       *fcho = new fltk::FileChooser("", 
     39                                                                                                                                                                                                        pattern, 
     40                                                                                                                                                                                                        fltk::FileChooser::CREATE, 
     41                                                                                                                                                                                                        "Open image file"); 
     42 
    3943        fcho->exec(); 
    4044        char filename[256]="";   
     
    183187 
    184188                        //      Cut extension. 
    185                         ptr                             =       strtok(file_name,"."); 
     189                        ptr     =       strtok(file_name,"."); 
    186190 
    187191                        //      If has extension. 
     
    221225                        } 
    222226                } 
     227 
    223228                //      Repaint the window. 
    224229                mMainWindow->redraw(); 
     
    21372142        geoMeshView->saveContext(); 
    21382143 
    2139         //    Debug. 
     2144        //      Debug. 
    21402145        cout    <<    "Mesh Reduction: " 
    21412146                <<    mMeshReduction->fvalue() 
    21422147                <<    endl; 
    21432148 
    2144         //    Gets simplify option. 
     2149        //      Gets simplify option. 
    21452150        if (mGeometryBased->value()) 
    21462151        { 
     
    21602165        if (mPercent->value()) 
    21612166        { 
    2162                 // Simplificaci?n por porcentaje 
     2167                // Simplification percent value. 
    21632168                if (mMeshReduction->fvalue() <= 100.0 && 
    21642169                                mMeshReduction->fvalue() > 0.0) 
     
    21662171                        percent =       mMeshReduction->fvalue(); 
    21672172                        percent =       percent / 100.0; 
    2168  
    2169                         //      Simplifica el geomesh -> Par?metro es un factor LOD [0,1]. 
    21702173 
    21712174                        mMeshSimplifier->Simplify(percent); 
     
    21932196        else 
    21942197        { 
    2195                 //      Simplificar hasta un n?mero de v?rtices. 
     2198                //      Simplification until number of vertices. 
    21962199                uint32 v        =       (uint32)mMeshReduction->fvalue(); 
    21972200 
    2198                 //      Simplifica el geomesh -> Par?metro es un factor LOD [0,1]. 
    21992201                mMeshSimplifier->Simplify(v); 
    22002202 
     
    22502252 
    22512253                // Simplify 
    2252                 if(idMeshLeaves !=      (unsigned short)-1) 
     2254                if (idMeshLeaves        !=      (unsigned short)-1) 
    22532255                { 
    22542256                        // Simplify 
Note: See TracChangeset for help on using the changeset viewer.