plot_curvature

PolyData.plot_curvature(curv_type='mean', **kwargs)

Plot the curvature.

Parameters
curv_typestr, optional

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-PolyData-plot_curvature-1_00_00.png