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 =
"max <height> [ -rec=x1,y1,dx[,dy] | -ell=x0,y0,rx[,ry] ] [-taper=<height2>]"
77 +
"\nEnsures that all points within the specified range are no higher than the specified value.";
84 double factor = this.computeBevel(data, x, y);
85 double result = Math.Min(data.elevation - (data.elevation - data.bevelevation) * factor, map[x, y]);
override string GetUsage()
Gets a string describing the usage.
MaxModifier(ITerrainModule module)
override string ModifyTerrain(ITerrainChannel map, string[] args)
Creates the feature.
override double operate(double[,] map, TerrainModifierData data, int x, int y)
Apply the appropriate operation on the specified map, at (x, y).