pyvista.Plotter.update_coordinates#

Plotter.update_coordinates(points, mesh=None, render=True)[source]#

Update the points of an object in the plotter.

Deprecated since version 0.43.0: This method is deprecated and will be removed in a future version of PyVista. It is functionally equivalent to directly modifying the points of a mesh in-place.

# Modify the points in place
mesh.points = points
# Explicitly call render if needed
plotter.render()
Parameters:
pointsnp.ndarray

Points to replace existing points.

meshvtk.PolyData | vtk.UnstructuredGrid, optional

Object that has already been added to the Plotter. If None, uses last added mesh.

renderbool, default: True

Force a render when True.