PolyDataFilters.plot_curvature

PolyDataFilters.plot_curvature#

PolyDataFilters.plot_curvature(
curv_type: _CurvatureOptions = 'mean',
**kwargs,
) → _ShowReturnType[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#

Download Python source code | Download Jupyter notebook

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-b2f2e7ad4d5aca6a_00_00.png