Create a PointSet#
pyvista.PointSet is a concrete class representing a set of points
that specifies the interface for datasets that explicitly use “point” arrays to
represent geometry. This class is useful for improving the performance of
filters on point clouds.
This example shows the performance improvement when clipping using the
pyvista.DataSet.clip() filter on a
Time to clip with a PolyData 3.54 seconds.
Plot the clipped polydata
Show the performance improvement when using a PointSet. This is only available with VTK >= 9.1.0.
Time to clip with a PointSet 0.16 seconds.
Plot the same dataset.
PyVista must still create an intermediate PolyData to be able to plot, so
there is no performance improvement when using a
if pv.vtk_version_info >= (9, 1): clipped_pset.plot(show_scalar_bar=False)
Total running time of the script: ( 0 minutes 7.215 seconds)