Terrain
Resample
change the resolution of the terrain data points
Calling Sequence
Parameters
Options
Description
Examples
Resample(T', opts)
T:-Resample(opts)
T
-
Terrain; the Terrain object
opts
(optional) equation(s) of the form option = value; specify options for the Resample command
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".
The Resample method resamples the terrain data points, that is, changes the resolution to finer or coarser.
with⁡Tires:
Assign the path to the spreadsheet that defines the terrain data points.
filepath≔FileTools:-JoinPath⁡kernelopts⁡toolboxdir=TireComponentLibrary,data,examples,terrain.xlsx:
Import the data and use it to assign a Terrain object.
terrain≔ImportData⁡filepath,up_direction=z
terrain≔Terrain⁡
Plot the generated terrain.
terrain:-Plot⁡
Resample the terrain to make the data points 1 meter apart.
terrain:-Resample⁡size=1,1:
Plot the resampled terrain.
See Also
Tires
Download Help Document