DeleteNoise - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Terrain

  

DeleteNoise

  

delete noise from the terrain data points

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

DeleteNoise(T, opts)

T:-DeleteNoise(opts)

Parameters

T

-

Terrain; the Terrain object

Description

The DeleteNoise method deletes the noise added to the terrain data points by the AddNoise method.

Examples

withTires:

Define the terrain equation.

eq0.1tanhx5tanhx30:

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.

terrainGenerateTerraineq,10..100,10..10,50,10,up_direction=z,title=myTerrain:

Plot the generated terrain.

terrain:-Plot

Add some unevenness to the terrain.

terrain:-AddNoise0.1,size=2,2:

Plot the new terrain data points.

terrain:-Plot

Not happy with the unevenness, delete the noise.

terrain:-DeleteNoise:

Plot the terrain again.

terrain:-Plot

See Also

AddNoise

Terrain

Tires