Read GSLib Point Set

Read GSLib point set file

# sphinx_gallery_thumbnail_number = 1
import pooch

from PVGeo.gslib import GSLibPointSetReader
# points_url = 'http://www.trainingimages.org/uploads/3/4/7/0/34703305/b_100sampledatawl.sgems'
url = "https://raw.githubusercontent.com/pyvista/vtk-data/master/Data/b_100sampledatawl.sgems"
file_path = pooch.retrieve(url=url, known_hash=None)

point_set = GSLibPointSetReader().apply(file_path)
point_set
HeaderData Arrays
PolyDataInformation
N Cells100
N Points100
X Bounds3.000e+00, 2.520e+02
Y Bounds1.000e+00, 2.980e+02
Z Bounds0.000e+00, 0.000e+00
N Arrays1
NameFieldTypeN CompMinMax
U-random-samplingtransPointsfloat6410.000e+002.302e+03


point_set.plot()
read point set

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

Gallery generated by Sphinx-Gallery