Changeset 1007 for GTP/trunk/Lib/Geom/shared/GeoTool
- Timestamp:
- 06/09/06 08:24:19 (19 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared/GeoTool
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r998 r1007 24 24 // Deactive Lod tree visualization. 25 25 geoMeshView->deactiveLodTree(); 26 27 geoMeshView->resetTextures(); 28 BuildLoadTextureSubMeshMenu(); 26 29 27 30 // Repaint the window. … … 919 922 // Show title. 920 923 mProcessTitle->label("Visualize LodTrees"); 921 922 // set the submesh with triangle lists as the leaves submesh923 geoMeshView->setLeavesSubMesh(geoMeshView->findLeavesSubMesh());924 924 925 925 // Show the Visulize LodTree panel. … … 1790 1790 for(int i=0; i<mGeoMesh->mSubMeshCount;i++) 1791 1791 { 1792 char *cadena=new char[ 12];1792 char *cadena=new char[256]; 1793 1793 1794 1794 if (geoMeshView->getLeavesSubMesh() >= 0) … … 2103 2103 else 2104 2104 { 2105 // 2105 // Simplificar hasta un número de vértices. 2106 2106 uint32 v = (uint32)mMeshReduction->fvalue(); 2107 2107 2108 // 2108 // Simplifica el geomesh -> Parámetro es un factor LOD [0,1]. 2109 2109 mMeshSimplifier->Simplify(v); 2110 2110 2111 // 2111 // Deletes the previous mesh. 2112 2112 delete mUndoMesh; 2113 2113 2114 2114 mUndoMesh = new Mesh(); 2115 2115 2116 // 2116 // Sets the undo mesh. 2117 2117 *mUndoMesh = *mGeoMesh; 2118 2118 … … 2121 2121 mGeoMesh = mMeshSimplifier->GetMesh(); 2122 2122 2123 // 2123 // Visualize the mesh. 2124 2124 geoMeshView->setMesh(mGeoMesh); 2125 2125 } … … 2127 2127 return true; 2128 2128 } 2129 2130 2129 2131 2130 //--------------------------------------------------------------------------- … … 2382 2381 2383 2382 // Sets the slider range. 2384 mLodStripSlider->range(lodStripsLib->MaxLod(), 2385 lodStripsLib->MinLod()); 2383 mLodStripSlider->range(lodStripsLib->MinLod(),lodStripsLib->MaxLod()); 2386 2384 2387 2385 // Pass to geomeshview the lod strips object. … … 2389 2387 2390 2388 // Puts the slider in the max position. 2391 mLodStripSlider->value(lodStripsLib->MinLod());2389 //mLodStripSlider->value(lodStripsLib->MinLod()); 2392 2390 } 2393 2391 … … 2521 2519 // Restore simplification state. 2522 2520 simplificationState = NO_SIMPLIFICATION; 2523 2524 geoMeshView->resetTextures();2525 BuildLoadTextureSubMeshMenu();2526 2521 } 2527 2522 } -
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoTool.cpp
r980 r1007 4 4 #endif 5 5 6 #include <malloc.h> 6 7 #include "GeoMeshViewUI.h" 7 8 … … 15 16 int main(int argc, char **argv) 16 17 { 18 _set_sbh_threshold(1016); 19 17 20 interface = new GeoMeshViewUI(incrementa); 18 21
Note: See TracChangeset
for help on using the changeset viewer.