Terrain
DeleteNoise
delete noise from the terrain data points
Calling Sequence
Parameters
Description
Examples
DeleteNoise(T, opts)
T:-DeleteNoise(opts)
T
-
Terrain; the Terrain object
The DeleteNoise method deletes the noise added to the terrain data points by the AddNoise method.
with⁡Tires:
Define the terrain equation.
eq≔0.1⁢tanh⁡x−5−tanh⁡x−30:
Generate a Terrain object using the defined equation. Select the z-axis as the up direction. The order of the two independent variables is [x,y]. Assign the range for x to be -10 to 100, and for y to be -10 to 10. Also, assign 50 grid points for the x-axis and 10 for the y-axis. Finally, set the title to myTerrain.
terrain≔GenerateTerrain⁡eq,−10..100,−10..10,50,10,up_direction=z,title=myTerrain:
Plot the generated terrain.
terrain:-Plot⁡
Add some unevenness to the terrain.
terrain:-AddNoise⁡0.1,size=2,2:
Plot the new terrain data points.
Not happy with the unevenness, delete the noise.
terrain:-DeleteNoise⁡:
Plot the terrain again.
See Also
AddNoise
Tires
Download Help Document