ParametricRandomHills

ParametricRandomHills(numberofhills=None, hillxvariance=None, hillyvariance=None, hillamplitude=None, randomseed=None, xvariancescalefactor=None, yvariancescalefactor=None, amplitudescalefactor=None, **kwargs)

Generate a surface covered with randomly placed hills.

ParametricRandomHills generates a surface covered with randomly placed hills. Hills will vary in shape and height since the presence of nearby hills will contribute to the shape and height of a given hill. An option is provided for placing hills on a regular grid on the surface. In this case the hills will all have the same shape and height.

Parameters
numberofhillsint, optional

The number of hills. Default is 30.

hillxvariancefloat, optional

The hill variance in the x-direction. Default is 2.5.

hillyvariancefloat, optional

The hill variance in the y-direction. Default is 2.5.

hillamplitudefloat, optional

The hill amplitude (height). Default is 2.

randomseedint, optional

The Seed for the random number generator, a value of 1 will initialize the random number generator, a negative value will initialize it with the system time. Default is 1.

xvariancescalefactorfloat, optional

The scaling factor for the variance in the x-direction. Default is 13.

yvariancescalefactorfloat, optional

The scaling factor for the variance in the y-direction. Default is 13.

amplitudescalefactorfloat, optional

The scaling factor for the amplitude. Default is 13.

**kwargsdict, optional

See surface_from_para() for additional keyword arguments.

Returns
pyvista.PolyData

ParametricRandomHills surface.

Examples

Create a ParametricRandomHills mesh.

>>> import pyvista
>>> mesh = pyvista.ParametricRandomHills()
>>> mesh.plot(color='w', smooth_shading=True)
../../../_images/pyvista-ParametricRandomHills-1_00_00.png