outline_corners

UniformGrid.outline_corners(factor=0.2, progress_bar=False)

Produce an outline of the corners for the input dataset.

Parameters
factorfloat, optional

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

progress_barbool, optional

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
>>> sphere = pyvista.Sphere()
>>> corners = sphere.outline_corners(factor=0.1)
>>> pyvista.plot([sphere, corners], line_width=5)
../../../_images/pyvista-UniformGrid-outline_corners-1_00_00.png