Terrain
CheckeredPlot
plot the checkered terrain
Calling Sequence
Parameters
Options
Description
Examples
CheckeredPlot(T, opts)
T:-CheckeredPlot(opts)
T
-
Terrain; the Terrain object
opts
(optional) equation(s) of the form option = value; specify options for the CheckeredPlot command
grid = [posint, posint]
Specifies the number of grid points for the noise. The grid and size options are mutually exclusive.
res_grid = [posint, posint]
Specifies the number of grid points for plotting the checkered terrain. This option changes the resolution of the plot. The res_grid and res_size options are mutually exclusive.
res_size = [positive, positive]
Specifies the size of the grid for plotting the checkered terrain. This option changes the resolution of the plot. The res_grid and res_size options are mutually exclusive.
size = [posint, posint]
Specifies the size of the grid, in meters, for adding noise. The grid and size options are mutually exclusive.
colors = list(string) or list(list(numeric))
The CheckeredPlot method creates a 3-D checkered plot of terrain. The size and colors of the rectangles are defined using the options.
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:
Create a checkered plot of the terrain.
terrain:-CheckeredPlot⁡size=2,2,res_size=2,2
See Also
Tires
Download Help Document