zvtk.Reader.read#
- Reader.read(n_threads: int | None = None) DataSet#
Read in the dataset from the zvtk file.
- Parameters:
- n_threadsint, optional
Number of threads to use when reading. A value of
-1uses all available cores and0disables multi-threading.
Examples
>>> import pyvista as pv >>> import zvtk >>> ds = pv.Sphere() >>> zvtk.write(ds, "sphere.zvtk") >>> reader = zvtk.Reader("sphere.zvtk") >>> ds_in = reader.read() >>> ds_in PolyData (0x7f1eca564520) N Cells: 1680 N Points: 842 N Strips: 0 X Bounds: -4.993e-01, 4.993e-01 Y Bounds: -4.965e-01, 4.965e-01 Z Bounds: -5.000e-01, 5.000e-01 N Arrays: 1