pyvista.Camera.model_transform_matrix#
- property Camera.model_transform_matrix[ソース]#
カメラのモデル変換行列を返すか設定します.
例
>>> import pyvista as pv >>> import numpy as np >>> pl = pv.Plotter() >>> pl.camera.model_transform_matrix array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]) >>> pl.camera.model_transform_matrix = np.array( ... [ ... [1.0, 0.0, 0.0, 0.0], ... [0.0, 1.0, 0.0, 0.0], ... [0.0, 0.0, 1.0, 0.0], ... [0.0, 0.0, 0.0, 0.5], ... ] ... ) >>> array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 0.5]])