pyvista.core.utilities.VtkErrorCatcher#
- class VtkErrorCatcher(raise_errors: bool = False, send_to_logging: bool = True)[source]#
Context manager to temporarily catch VTK errors.
- Parameters:
Examples
Catch VTK errors using the context manager.
>>> import pyvista as pv >>> with pv.VtkErrorCatcher() as error_catcher: ... sphere = pv.Sphere()
Methods