pyvista.PolyDataFilters.plot_curvature#

PolyDataFilters.plot_curvature(curv_type='mean', **kwargs)[source]#

Plot the curvature.

Parameters:
curv_typestr, default: “mean”

One of the following strings indicating curvature type:

  • 'mean'

  • 'gaussian'

  • 'maximum'

  • 'minimum'

**kwargsdict, optional

See pyvista.plot().

Returns:
pyvista.CameraPosition

List of camera position, focal point, and view up. Returned when return_cpos is True.

Examples

Plot the Gaussian curvature of an example mesh. Override the default scalar bar range as the mesh edges report high curvature.

>>> from pyvista import examples
>>> hills = examples.load_random_hills()
>>> hills.plot_curvature(
...     curv_type='gaussian', smooth_shading=True, clim=[0, 1]
... )
../../../_images/pyvista-PolyDataFilters-plot_curvature-1_00_00.png