Extract Points

This example will demonstrate how to extract the points and PointData of any input data set that has valid PointData into a vtkPolyData object.

This example demos PVGeo.filters.ExtractPoints

# sphinx_gallery_thumbnail_number = 2
from pyvista import examples
from PVGeo.filters import ExtractPoints

Have some input data source with valid PointData

data = examples.load_globe()
data.plot()
../../_images/sphx_glr_extract-points_001.png

Out:

[(24578060184.082455, 24590884070.56062, 24590884070.56062), (-12823886.478166103, 4.76837158203125e-07, 0.0), (0.0, 0.0, 1.0)]

Apply the filter:

polyData = ExtractPoints().apply(data)
polyData.plot()
../../_images/sphx_glr_extract-points_002.png

Out:

[(24578060184.082455, 24590884070.56062, 24590884070.56062), (-12823886.478166103, 4.76837158203125e-07, 0.0), (0.0, 0.0, 1.0)]

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

Gallery generated by Sphinx-Gallery