diff options
author | Adam Frisby | 2007-07-23 05:29:52 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-23 05:29:52 +0000 |
commit | b8da9c3a64b84ab14642bad8c79d3b2ed62e62fb (patch) | |
tree | de4466ffdf017e140ec3aca9bb52cbe14e5e5b12 /OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs | |
parent | Couple of small changes (diff) | |
download | opensim-SC-b8da9c3a64b84ab14642bad8c79d3b2ed62e62fb.zip opensim-SC-b8da9c3a64b84ab14642bad8c79d3b2ed62e62fb.tar.gz opensim-SC-b8da9c3a64b84ab14642bad8c79d3b2ed62e62fb.tar.bz2 opensim-SC-b8da9c3a64b84ab14642bad8c79d3b2ed62e62fb.tar.xz |
* Major style changes in libTerrain.Channel - now uses .NET-style naming syntax.
* Issue#218 - Updated mySQL region table.
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs index 7514971..449bf85 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Manipulators/ThermalWeathering.cs | |||
@@ -40,7 +40,7 @@ namespace libTerrain | |||
40 | /// <param name="talus">The rock angle (represented as a dy/dx ratio) at which point it will be succeptible to breakage</param> | 40 | /// <param name="talus">The rock angle (represented as a dy/dx ratio) at which point it will be succeptible to breakage</param> |
41 | /// <param name="rounds">The number of erosion rounds</param> | 41 | /// <param name="rounds">The number of erosion rounds</param> |
42 | /// <param name="c">The amount of rock to carry each round</param> | 42 | /// <param name="c">The amount of rock to carry each round</param> |
43 | public Channel thermalWeathering(double talus, int rounds, double c) | 43 | public Channel ThermalWeathering(double talus, int rounds, double c) |
44 | { | 44 | { |
45 | double[,] lastFrame; | 45 | double[,] lastFrame; |
46 | double[,] thisFrame; | 46 | double[,] thisFrame; |
@@ -48,10 +48,10 @@ namespace libTerrain | |||
48 | lastFrame = (double[,])map.Clone(); | 48 | lastFrame = (double[,])map.Clone(); |
49 | thisFrame = (double[,])map.Clone(); | 49 | thisFrame = (double[,])map.Clone(); |
50 | 50 | ||
51 | NEIGHBOURS type = NEIGHBOURS.NEIGHBOUR_MOORE; // Using moore neighbourhood (twice as computationally expensive) | 51 | NeighbourSystem type = NeighbourSystem.Moore; // Using moore neighbourhood (twice as computationally expensive) |
52 | int NEIGHBOUR_ME = 4; // I am always 4 in both systems. | 52 | int NEIGHBOUR_ME = 4; // I am always 4 in both systems. |
53 | 53 | ||
54 | int NEIGHBOUR_MAX = type == NEIGHBOURS.NEIGHBOUR_MOORE ? 9 : 5; | 54 | int NEIGHBOUR_MAX = type == NeighbourSystem.Moore ? 9 : 5; |
55 | 55 | ||
56 | int frames = rounds; // Number of thermal erosion iterations to run | 56 | int frames = rounds; // Number of thermal erosion iterations to run |
57 | int i, j; | 57 | int i, j; |
@@ -67,7 +67,7 @@ namespace libTerrain | |||
67 | { | 67 | { |
68 | if (j != NEIGHBOUR_ME) | 68 | if (j != NEIGHBOUR_ME) |
69 | { | 69 | { |
70 | int[] coords = neighbours(type, j); | 70 | int[] coords = Neighbours(type, j); |
71 | 71 | ||
72 | coords[0] += x; | 72 | coords[0] += x; |
73 | coords[1] += y; | 73 | coords[1] += y; |
@@ -103,7 +103,7 @@ namespace libTerrain | |||
103 | 103 | ||
104 | map = thisFrame; | 104 | map = thisFrame; |
105 | 105 | ||
106 | normalise(); // Just to guaruntee a smooth 0..1 value | 106 | Normalise(); // Just to guaruntee a smooth 0..1 value |
107 | return this; | 107 | return this; |
108 | } | 108 | } |
109 | } | 109 | } |