class PolyDataFilters(*args, **kwargs)[source]#

An internal class to manage filters/algorithms for polydata datasets.


PolyDataFilters.append_polydata(*meshes[, ...])

Append one or more PolyData into this one.


Perform a boolean difference operation between two meshes.


Perform a boolean intersection operation on two meshes.

PolyDataFilters.boolean_union(other_mesh[, ...])

Perform a boolean union operation on two meshes.

PolyDataFilters.clean([point_merging, ...])

Clean the mesh.


Clip a closed polydata surface with a plane.

PolyDataFilters.collision(other_mesh[, ...])

Perform collision determination between two polyhedral surfaces.


Compute the arc length over the length of the probed line.


Compute point and/or cell normals for a mesh.

PolyDataFilters.contour_banded(n_contours[, ...])

Generate filled contours.

PolyDataFilters.curvature([curv_type, ...])

Return the pointwise curvature of a mesh.

PolyDataFilters.decimate(target_reduction[, ...])

Reduce the number of triangles in a triangular mesh using vtkQuadricDecimation.

PolyDataFilters.decimate_pro(reduction[, ...])

Reduce the number of triangles in a triangular mesh.

PolyDataFilters.delaunay_2d([tol, alpha, ...])

Apply a 2D Delaunay filter along the best fitting plane.

PolyDataFilters.edge_mask(angle[, progress_bar])

Return a mask of the points of a surface mesh that has a surface angle greater than angle.

PolyDataFilters.extrude(vector[, capping, ...])

Sweep polygonal data creating a "skirt" from free edges.

PolyDataFilters.extrude_rotate([resolution, ...])

Sweep polygonal data creating "skirt" from free edges and lines, and lines from vertices.

PolyDataFilters.extrude_trim(direction, ...)

Extrude polygonal data trimmed by a surface.

PolyDataFilters.fill_holes(hole_size[, ...])

Fill holes in a pyvista.PolyData or vtk.vtkPolyData object.


Flip normals of a triangular mesh by reversing the point ordering.

PolyDataFilters.geodesic(start_vertex, ...)

Calculate the geodesic path between two vertices using Dijkstra's algorithm.

PolyDataFilters.geodesic_distance(...[, ...])

Calculate the geodesic distance between two vertices using Dijkstra's algorithm.

PolyDataFilters.intersection(mesh[, ...])

Compute the intersection between two meshes.

PolyDataFilters.merge(dataset[, ...])

Merge this mesh with one or more datasets.

PolyDataFilters.multi_ray_trace(origins, ...)

Perform multiple ray trace calculations.


Plot boundaries of a mesh.


Plot the curvature.

PolyDataFilters.plot_normals([show_mesh, ...])

Plot the point normals of a mesh.


Project points of this mesh to a plane.


Generate protein ribbon.

PolyDataFilters.ray_trace(origin, end_point)

Perform a single ray trace calculation.


Reconstruct a surface from the points in this dataset.

PolyDataFilters.remove_points(remove[, ...])

Rebuild a mesh by removing points.

PolyDataFilters.ribbon([width, scalars, ...])

Create a ribbon of the lines in this dataset.

PolyDataFilters.smooth([n_iter, ...])

Adjust point coordinates using Laplacian smoothing.

PolyDataFilters.smooth_taubin([n_iter, ...])

Smooth a PolyData DataSet with Taubin smoothing.

PolyDataFilters.strip([join, max_length, ...])

Strip poly data cells.

PolyDataFilters.subdivide(nsub[, subfilter, ...])

Increase the number of triangles in a single, connected triangular mesh.


Increase the number of triangles in a triangular mesh based on edge and/or area metrics.

PolyDataFilters.triangulate([inplace, ...])

Return an all triangle mesh.


Triangulate and fill all 2D contours to create polygons.[radius, scalars, ...])

Generate a tube around each input line.