pysdic.Plotter3D.set_camera#

Plotter3D.set_camera(position=None, focal_point=None, view_up=None)[source]#

Set the camera position for the plotter.

Parameters:
  • position (Optional[Union[str, Tuple[Real, Real, Real], Tuple[Tuple[Real, Real, Real], Tuple[Real, Real, Real], Tuple[Real, Real, Real]]]], optional) – The position of the camera. Can be a string representing a predefined view (e.g., "xy"), a tuple of three real numbers representing the (x, y, z) coordinates of the camera position, or a tuple of three tuples representing the (position, focal_point, view_up) for the camera. If None, the default camera position is used.

  • focal_point (Optional[Union[str, Tuple[Real, Real, Real]]], optional) – The focal point of the camera. Can be a string representing a predefined view (e.g., "center"), or a tuple of three real numbers representing the (x, y, z) coordinates of the focal point. If None, the default focal point is used.

  • view_up (Optional[Union[str, Tuple[Real, Real, Real]]], optional) – The view up vector for the camera. Can be a string representing a predefined view (e.g., "z"), or a tuple of three real numbers representing the (x, y, z) components of the view up vector. If None, the default view up vector is used.

Return type:

None