Changeset 2291 for GTP/trunk/Lib/Geom/shared/GeoTool
- Timestamp:
- 03/26/07 08:46:55 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r2194 r2291 36 36 static char pattern[] = "*.{jpg|tga|png|bmp}"; 37 37 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 39 43 fcho->exec(); 40 44 char filename[256]=""; … … 183 187 184 188 // Cut extension. 185 ptr 189 ptr = strtok(file_name,"."); 186 190 187 191 // If has extension. … … 221 225 } 222 226 } 227 223 228 // Repaint the window. 224 229 mMainWindow->redraw(); … … 2137 2142 geoMeshView->saveContext(); 2138 2143 2139 // 2144 // Debug. 2140 2145 cout << "Mesh Reduction: " 2141 2146 << mMeshReduction->fvalue() 2142 2147 << endl; 2143 2148 2144 // 2149 // Gets simplify option. 2145 2150 if (mGeometryBased->value()) 2146 2151 { … … 2160 2165 if (mPercent->value()) 2161 2166 { 2162 // Simplifica ci?n por porcentaje2167 // Simplification percent value. 2163 2168 if (mMeshReduction->fvalue() <= 100.0 && 2164 2169 mMeshReduction->fvalue() > 0.0) … … 2166 2171 percent = mMeshReduction->fvalue(); 2167 2172 percent = percent / 100.0; 2168 2169 // Simplifica el geomesh -> Par?metro es un factor LOD [0,1].2170 2173 2171 2174 mMeshSimplifier->Simplify(percent); … … 2193 2196 else 2194 2197 { 2195 // Simplifica r hasta un n?mero de v?rtices.2198 // Simplification until number of vertices. 2196 2199 uint32 v = (uint32)mMeshReduction->fvalue(); 2197 2200 2198 // Simplifica el geomesh -> Par?metro es un factor LOD [0,1].2199 2201 mMeshSimplifier->Simplify(v); 2200 2202 … … 2250 2252 2251 2253 // Simplify 2252 if (idMeshLeaves != (unsigned short)-1)2254 if (idMeshLeaves != (unsigned short)-1) 2253 2255 { 2254 2256 // Simplify
Note: See TracChangeset
for help on using the changeset viewer.