Ignore:
Timestamp:
06/09/06 08:24:19 (18 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

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

    r998 r1007  
    2424        //      Deactive Lod tree visualization. 
    2525        geoMeshView->deactiveLodTree(); 
     26 
     27        geoMeshView->resetTextures(); 
     28        BuildLoadTextureSubMeshMenu(); 
    2629 
    2730        //      Repaint the window. 
     
    919922                        //      Show title. 
    920923                        mProcessTitle->label("Visualize LodTrees"); 
    921  
    922                         // set the submesh with triangle lists as the leaves submesh 
    923                         geoMeshView->setLeavesSubMesh(geoMeshView->findLeavesSubMesh()); 
    924924 
    925925                        //      Show the Visulize LodTree panel. 
     
    17901790                for(int i=0; i<mGeoMesh->mSubMeshCount;i++) 
    17911791                { 
    1792                         char *cadena=new char[12]; 
     1792                        char *cadena=new char[256]; 
    17931793 
    17941794                        if (geoMeshView->getLeavesSubMesh() >= 0) 
     
    21032103    else 
    21042104    { 
    2105         // Simplificar hasta un número de vértices. 
     2105        //      Simplificar hasta un número de vértices. 
    21062106        uint32 v    =    (uint32)mMeshReduction->fvalue(); 
    21072107 
    2108         // Simplifica el geomesh -> Parámetro es un factor LOD [0,1]. 
     2108        //      Simplifica el geomesh -> Parámetro es un factor LOD [0,1]. 
    21092109        mMeshSimplifier->Simplify(v); 
    21102110 
    2111         //    Deletes the previous mesh. 
     2111        //      Deletes the previous mesh. 
    21122112        delete mUndoMesh; 
    21132113 
    21142114        mUndoMesh    =    new Mesh(); 
    21152115 
    2116         //    Sets the undo mesh. 
     2116        //      Sets the undo mesh. 
    21172117        *mUndoMesh    =    *mGeoMesh; 
    21182118 
     
    21212121        mGeoMesh    =    mMeshSimplifier->GetMesh(); 
    21222122 
    2123         //    Visualize the mesh. 
     2123        //      Visualize the mesh. 
    21242124        geoMeshView->setMesh(mGeoMesh); 
    21252125    } 
     
    21272127    return    true; 
    21282128} 
    2129  
    21302129 
    21312130//--------------------------------------------------------------------------- 
     
    23822381 
    23832382        //      Sets the slider range. 
    2384         mLodStripSlider->range(lodStripsLib->MaxLod(), 
    2385                                                                                 lodStripsLib->MinLod()); 
     2383        mLodStripSlider->range(lodStripsLib->MinLod(),lodStripsLib->MaxLod()); 
    23862384 
    23872385        //      Pass to geomeshview the lod strips object. 
     
    23892387         
    23902388        //      Puts the slider in the max position. 
    2391         mLodStripSlider->value(lodStripsLib->MinLod()); 
     2389        //mLodStripSlider->value(lodStripsLib->MinLod()); 
    23922390} 
    23932391 
     
    25212519                        //      Restore simplification state. 
    25222520                        simplificationState     =       NO_SIMPLIFICATION; 
    2523  
    2524                         geoMeshView->resetTextures(); 
    2525                         BuildLoadTextureSubMeshMenu(); 
    25262521                } 
    25272522        } 
Note: See TracChangeset for help on using the changeset viewer.