PolyDataFilters.append_polydata#
- PolyDataFilters.append_polydata( ) PolyData[source]#
Append one or more PolyData into this one.
Under the hood, the VTK vtkAppendPolyData filter is used to perform the append operation.
Added in version 0.40.0.
Note
As stated in the VTK documentation of vtkAppendPolyData, point and cell data are added to the output PolyData only if they are present across all input PolyData.
- Parameters:
- Returns:
pyvista.PolyDataThe appended
PolyDataobjects.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> sp0 = pv.Sphere()
>>> sp1 = sp0.translate((1, 0, 0))
>>> appended = sp0.append_polydata(sp1)
>>> appended.plot()
Append more than one PolyData.
>>> sp2 = sp0.translate((-1, 0, 0))
>>> appended = sp0.append_polydata(sp1, sp2)
>>> appended.plot()
See Also#
Used In#
API Examples
PolyDataFilters.delaunay_2d(1 use)UnstructuredGridFilters.delaunay_2d(1 use)