pyvista.core._validation.validate.validate_transform4x4

pyvista.core._validation.validate.validate_transform4x4#

validate_transform4x4(
transform: TransformLike,
/,
*,
must_be_finite: bool = True,
name: str = 'Transform',
) NumpyArray[float][ソース]#

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

This function supports inputs with a 3x3 or 4x4 shape. If the input is 3x3, the array is padded using a 4x4 identity matrix.

パラメータ:
transformTransformLike

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

3x3 または 4x4 の配列,3x3 または 4x4 の vtkMatrix,または vtkTransform としての変換行列.

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

検証済みの4x4変換行列.

参考

validate_transform3x3

3x3変換の同様な関数 .

validate_array

汎用的な配列検証関数.