pyvista.DataSetFilters.outline_corners#

DataSetFilters.outline_corners(factor=0.2, progress_bar=False)[source]#

Produce an outline of the corners for the input dataset.

Parameters:
factorfloat, default: 0.2

Controls the relative size of the corners to the length of the corresponding bounds.

progress_barbool, default: False

Display a progress bar to indicate progress.

Returns:
pyvista.PolyData

Mesh containing outlined corners.

Examples

Generate and plot the corners of a sphere. This is effectively the (x, y, z) bounds of the mesh.

>>> import pyvista as pv
>>> sphere = pv.Sphere()
>>> corners = sphere.outline_corners(factor=0.1)
>>> pv.plot([sphere, corners], line_width=5)
https://d33wubrfki0l68.cloudfront.net/1a08b4d076234a1c4508ab0d1c2c168846662d59/ae77f/_images/pyvista-datasetfilters-outline_corners-1_00_00.png