diff options
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Voronoi.cs')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Voronoi.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Voronoi.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Voronoi.cs index e973d14..eb8f7ba 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Voronoi.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Generators/Voronoi.cs | |||
@@ -44,6 +44,8 @@ namespace libTerrain | |||
44 | /// <param name="c">The Voronoi diagram type. Usually an array with values consisting of [-1,1]. Experiment with the chain, you can have as many values as you like.</param> | 44 | /// <param name="c">The Voronoi diagram type. Usually an array with values consisting of [-1,1]. Experiment with the chain, you can have as many values as you like.</param> |
45 | public void VoronoiDiagram(int pointsPerBlock, int blockSize, double[] c) | 45 | public void VoronoiDiagram(int pointsPerBlock, int blockSize, double[] c) |
46 | { | 46 | { |
47 | SetDiff(); | ||
48 | |||
47 | List<Point2D> points = new List<Point2D>(); | 49 | List<Point2D> points = new List<Point2D>(); |
48 | Random generator = new Random(seed); | 50 | Random generator = new Random(seed); |
49 | 51 | ||
@@ -103,7 +105,8 @@ namespace libTerrain | |||
103 | 105 | ||
104 | public void VoronoiDiagram(List<Point2D> points, double[] c) | 106 | public void VoronoiDiagram(List<Point2D> points, double[] c) |
105 | { | 107 | { |
106 | 108 | SetDiff(); | |
109 | |||
107 | Random generator = new Random(seed); | 110 | Random generator = new Random(seed); |
108 | int x, y, i; | 111 | int x, y, i; |
109 | double[] distances = new double[points.Count]; | 112 | double[] distances = new double[points.Count]; |
@@ -146,6 +149,8 @@ namespace libTerrain | |||
146 | 149 | ||
147 | public void VoroflatDiagram(int pointsPerBlock, int blockSize) | 150 | public void VoroflatDiagram(int pointsPerBlock, int blockSize) |
148 | { | 151 | { |
152 | SetDiff(); | ||
153 | |||
149 | List<Point2D> points = new List<Point2D>(); | 154 | List<Point2D> points = new List<Point2D>(); |
150 | Random generator = new Random(seed); | 155 | Random generator = new Random(seed); |
151 | 156 | ||