aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Terrain.BasicTerrain
diff options
context:
space:
mode:
authorAdam Frisby2007-07-23 05:31:58 +0000
committerAdam Frisby2007-07-23 05:31:58 +0000
commit14879fead9801b83b44c796831456b0314fa8b47 (patch)
tree456a1c511fa6427df10c6fd981b795766ba9edc6 /OpenSim/Region/Terrain.BasicTerrain
parent* Major style changes in libTerrain.Channel - now uses .NET-style naming syntax. (diff)
downloadopensim-SC_OLD-14879fead9801b83b44c796831456b0314fa8b47.zip
opensim-SC_OLD-14879fead9801b83b44c796831456b0314fa8b47.tar.gz
opensim-SC_OLD-14879fead9801b83b44c796831456b0314fa8b47.tar.bz2
opensim-SC_OLD-14879fead9801b83b44c796831456b0314fa8b47.tar.xz
* Bonus commit, added a "terrain fill" command to fill a terrain with a specific height value.
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain')
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index e5cc5ea..d0b5cb9 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -260,6 +260,7 @@ namespace OpenSim.Region.Terrain
260 resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32', 'F64', 'PNG', 'RAW' or 'HIRAW'\n"; 260 resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32', 'F64', 'PNG', 'RAW' or 'HIRAW'\n";
261 resultText += "terrain save grdmap <filename> <gradient map> - creates a PNG snapshot of the region using a named gradient map\n"; 261 resultText += "terrain save grdmap <filename> <gradient map> - creates a PNG snapshot of the region using a named gradient map\n";
262 resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n"; 262 resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n";
263 resultText += "terrain fill <val> - fills a terrain at the specified height\n";
263 resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n"; 264 resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n";
264 resultText += "terrain erode thermal <talus> <rounds> <carry>\n"; 265 resultText += "terrain erode thermal <talus> <rounds> <carry>\n";
265 resultText += "terrain erode hydraulic <rain> <evaporation> <solubility> <frequency> <rounds>\n"; 266 resultText += "terrain erode hydraulic <rain> <evaporation> <solubility> <frequency> <rounds>\n";
@@ -309,6 +310,10 @@ namespace OpenSim.Region.Terrain
309 SetRange(Convert.ToSingle(args[1]), Convert.ToSingle(args[2])); 310 SetRange(Convert.ToSingle(args[1]), Convert.ToSingle(args[2]));
310 break; 311 break;
311 312
313 case "fill":
314 heightmap.Fill(Convert.ToDouble(args[1]));
315 break;
316
312 case "multiply": 317 case "multiply":
313 heightmap *= Convert.ToDouble(args[1]); 318 heightmap *= Convert.ToDouble(args[1]);
314 tainted++; 319 tainted++;