load_random_hills#
- load_random_hills() PolyData[source]#
Create random hills toy example.
Uses the parametric random hill function to create hills oriented like topography and adds an elevation array.
This example dataset was created with:
>>> import pyvista as pv >>> mesh = pv.ParametricRandomHills() >>> mesh = mesh.elevation()
- Returns:
pyvista.PolyDataRandom hills mesh.
Examples#
Download Python source code | Download Jupyter notebook
>>> from pyvista import examples
>>> mesh = examples.load_random_hills()
>>> mesh.plot()
See Also#
- Random Hills Dataset
See this dataset in the Dataset Gallery for more info.
Used In#
Guides
- Examples & Datasets (1 use)
Docstring Examples
DataObjectFilters.slice_along_axis(1 use)DataObjectFilters.slice_along_line(1 use)DataObjectFilters.slice_orthogonal(1 use)DataSetFilters.compute_derivative(1 use)DataSetFilters.contour(1 use)13 more
DataSetFilters.glyph(1 use)LookupTable.apply_opacity(1 use)Plotter.add_mesh_isovalue(1 use)Plotter.add_plane_widget(1 use)Plotter.show_bounds(1 use)PolyDataFilters.contour_banded(1 use)PolyDataFilters.curvature(1 use)PolyDataFilters.geodesic(1 use)PolyDataFilters.plot_boundaries(1 use)PolyDataFilters.plot_curvature(1 use)Renderer.show_bounds(1 use)WidgetComponent.add_mesh_isovalue(1 use)WidgetComponent.add_plane_widget(1 use)
Gallery Examples