pysdic.display_visibility#

display_visibility(mesh, integration_points, camera, *, warp_by=None, tolerance=None, visible_color='blue', hidden_color='red', point_size=5.0, show_camera=True, title=None, show=True)[source]#

Display in 3D the visibility of integration points by a camera (see compute_visibility()): the (deformed) mesh, the visible points in visible_color and the other ones in hidden_color.

Important

Requires the optional packages open3d (visibility) and pyvista (display).

Parameters:
  • mesh (pysdic.Mesh) – The 3D surface mesh (with an element type).

  • integration_points (pysdic.IntegrationPoints) – The points to check, consistent with the mesh.

  • camera (Union[pysdic.Camera, pysdic.View]) – The camera, or a view (its camera and the ROI of its image).

  • warp_by (Optional[Union[str, ArrayLike]], optional) – The displacement of the vertices (name of a vertex property or array of shape \((N_v, 3)\)).

  • tolerance (Optional[Real], optional) – See compute_visibility().

  • visible_color (str, optional (default: "blue", "red")) – The colors of the visible and of the hidden points.

  • hidden_color (str, optional (default: "blue", "red")) – The colors of the visible and of the hidden points.

  • point_size (Real, optional (default: 5.0)) – The size of the points.

  • show_camera (bool, optional (default: True)) – Whether to draw the center of the camera (origin of the ray of the principal normalized point \((0, 0)\)) with an arrow along its optical axis, up to the center of the mesh.

  • title (Optional[str], optional) – The title. By default, the number of visible points.

  • show (bool, optional (default: True)) – Whether to show the plotter.

Returns:

The plotter.

Return type:

pysdic.Plotter3D