ParticleReader#
- class ParticleReader(*args, **kwargs)[source]#
ParticleReader for .raw files.
Wraps vtkParticleReader.
Added in version 0.44.0.
Warning
If the byte order is not set correctly, the reader will fail to read the file.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_particles(load=False)
>>> reader = pv.get_reader(filename)
>>> reader.endian = 'BigEndian'
>>> Path(filename).name
'Particles.raw'
>>> mesh = reader.read()
>>> mesh.plot()
Attributes#
Get the byte order of the data. |
Inherited Attributes#
Return mapping from regex pattern matching associated with this class. |
|
Return the file extensions associated with this class. |
|
Return or set the filename or directory of the reader. |
|
Return the vtk Reader object. |
Inherited Methods#
Hide the progress bar when loading the file. |
|
Read data in file. |
|
Show a progress bar when loading the file. |