pyvista.core._validation.validate.validate_transform3x3

pyvista.core._validation.validate.validate_transform3x3#

validate_transform3x3(
transform: pyvista.TransformLike,
/,
*,
must_be_finite: bool = True,
name: str = 'Transform',
)[ソース]#

トランスフォームのような入力を3x3のndarrayとして検証します.

パラメータ:
transformRotationLike

Transformation matrix as a 3x3 array, vtk matrix, or a SciPy Rotation instance.

注釈

Although RotationLike inputs are accepted, no checks are done to verify that the transformation is actually a rotation. Therefore, any 3x3 transformation is acceptable.

must_be_finitebool, default: True

Check if all elements of the array are finite, i.e. not infinity and not Not a Number (NaN).

namestr, default: "Transform"

エラーメッセージのバリデーションチェックに失敗した場合に使用する変数名.

戻り値:
np.ndarray

検証済みの3x3変換行列.

参考

validate_transform4x4

4x4変換の同様な関数 .

validate_array

汎用的な配列検証関数.