Changeset 260 for experimental/TerrainTest/ellipsoidTechnique.cpp
- Timestamp:
- Feb 23, 2011, 8:12:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/ellipsoidTechnique.cpp
r258 r260 23 23 int startX=0,startY=0,endX=cols,endY=rows; 24 24 25 double roi_lat_min = 48.336808; 26 double roi_lat_max = 48.370467; 27 double roi_lon_min = 11.736750; 28 double roi_lon_max = 11.835322; 29 30 // dertermining loop variables 31 if(lat_min<roi_lat_min) 32 startY = (roi_lat_min - lat_min) / h->getYInterval(); 33 if(lat_max>roi_lat_max) 34 endY = (roi_lat_max - lat_min) / h->getYInterval(); 35 36 if(lon_min<roi_lon_min) 37 startX = (roi_lon_min - lon_min) / h->getXInterval(); 38 if(lon_max>roi_lon_max) 39 endX = (roi_lon_max - lon_min) / h->getXInterval(); 40 25 41 26 42 // modify height value of affected vertices 27 h->setHeight( 0,0, 600); 43 for(int x=startX;x<endX;x++) 44 { 45 for(int y=startY;y<endY;y++) 46 { 47 h->setHeight( x, y, 550); 48 } 49 } 50 28 51 29 52
Note: See TracChangeset
for help on using the changeset viewer.