28 using OpenSim.Region.CoreModules.World.Terrain;
29 using OpenSim.Region.Framework.Interfaces;
44 result =
"Usage: " + GetUsage();
49 result = this.parseParameters(args, out data);
52 if (result ==
String.Empty)
56 data.shape =
"rectangle";
65 if (result ==
String.Empty)
67 this.applyModification(map, data);
76 string val =
"min <height> [ -rec=x1,y1,dx[,dy] | -ell=x0,y0,rx[,ry] ] [-taper=<height2>]"
77 +
"\nEnsures that all points within the specified range are no lower than the specified value.";
84 double factor = this.computeBevel(data, x, y);
85 double result = Math.Max(data.elevation - (data.elevation - data.bevelevation) * factor, map[x, y]);
MinModifier(ITerrainModule module)
override string ModifyTerrain(ITerrainChannel map, string[] args)
Creates the feature.
override string GetUsage()
Gets a string describing the usage.
override double operate(double[,] map, TerrainModifierData data, int x, int y)
Apply the appropriate operation on the specified map, at (x, y).