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()
Methods#
Attributes#
Get the byte order of the data. |