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

Online Help

All Products    Maple    MapleSim


Terrain

  

Resample

  

change the resolution of the terrain data points

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Resample(T', opts)

T:-Resample(opts)

Parameters

T

-

Terrain; the Terrain object

opts

-

(optional) equation(s) of the form option = value; specify options for the Resample command

Options

grid = [posint, posint]

Specifies the number of grid points for the noise. The grid and size options are mutually exclusive.

method = name

Specifies the method of interpolation for resampling. The valid names are methods used in CurveFitting[ArrayInterpolation]. The default is cubic.

size = [posint, posint]

Specifies the size of the grid, in meters, for adding noise. The grid and size options are mutually exclusive.

table_name = "param" or "initial"

The default is "param".

Description

The Resample method resamples the terrain data points, that is, changes the resolution to finer or coarser.

Examples

withTires:

Assign the path to the spreadsheet that defines the terrain data points.

filepathFileTools:-JoinPathkerneloptstoolboxdir=TireComponentLibrary,data,examples,terrain.xlsx:

Import the data and use it to assign a Terrain object.

terrainImportDatafilepath,up_direction=z

terrainTerrain

(1)

Plot the generated terrain.

terrain:-Plot

Resample the terrain to make the data points 1 meter apart.

terrain:-Resamplesize=1,1:

Plot the resampled terrain.

terrain:-Plot

See Also

Terrain

Tires