General Utilities#
|
Context manager to temporarily catch VTK errors. |
|
Rotate points by angle about an axis. |
|
Check if a point is inside a set of bounds. |
|
Set a file to write out the VTK errors. |
Object Conversions or Wrapping#
|
Convert a vtk matrix to an array. |
|
Construct a cubemap from 6 images from a directory. |
|
Construct a cubemap from 6 images. |
|
Convert |
|
Return |
|
Convert a NumPy image array to a vtk.vtkTexture. |
|
An ndarray which references the owning dataset and the underlying vtkArray. |
|
Convert a |
|
Wrap any given VTK data object to its appropriate PyVista data object. |
File IO#
|
Read any file type supported by |
|
Read an ExodusII file ( |
|
Use VTK's legacy reader to read a file. |
|
Load a texture from an image file. |
|
Save mesh to file using meshio. |
Mesh Creation#
|
Define types of cells. |
|
Fit a plane to a set of points using the SVD algorithm. |
|
Make a connected line set given an array of points. |
|
Create a pyvista.PolyData object composed of vectors. |
|
Convert numpy array or array-like to a |
Array Access#
|
Return cell array of a pyvista or vtk object. |
|
Convert a NumPy array to a vtkDataArray or vice versa. |
|
Return field data of a pyvista or vtk object. |
|
Search point, cell and field data for an array. |
|
Return point array of a pyvista or vtk object. |
Image Comparison and Regression#
|
Compare two different images of the same size. |
Miscellaneous#
|
Helper class to convert between different color representations used in the pyvista library. |
Any object convertible to a |
|
|
Start the virtual framebuffer Xvfb. |
|
Generate a PyVista software environment report. |
VTK Version Information#
The PyVista library is heavily dependent on VTK and provides an easy way of getting the version of VTK in your environment.
Output the version of VTK.
>>> import pyvista
>>> pyvista.vtk_version_info
VTKVersionInfo(major=9, minor=1, micro=0)
Get the major version of VTK
>>> pyvista.vtk_version_info.major
9