Rotate Points

This example will demonstrate how to rotate points in a vtkPolyData object around some origin on the XY plane.

THis example demos PVGeo.filters.RotatePoints

from pyvista import examples
from PVGeo.filters import RotatePoints

Get pyvista.PolyData sample input to rotate

mesh = examples.load_uniform().cell_centers()
mesh.plot()
../../_images/sphx_glr_rotate-points_001.png

Use the filter:

rotated = RotatePoints(angle=33.3).apply(mesh)
rotated.plot()
../../_images/sphx_glr_rotate-points_002.png

Total running time of the script: ( 0 minutes 0.706 seconds)

Gallery generated by Sphinx-Gallery