Validation#
Warning
This package is under active development and is unstable. The API may
change without warning. It is currently intended for internal use by
PyVista
methods only but will be made public in a future version.
Input validation methods for checking and/or validating a variable has the
correct type and/or for use by an algorithm. These methods can be useful when
writing custom Python
methods, VTK
wrappers, and/or when Contributing
to PyVista.
Some common use cases for input validation are:
- Validate a 3-element vector:
- Validate an Nx3 point or vector array:
- Validate point or cell IDs:
- Validate a transformation matrix: