pysdic.View.visualize_projected_mesh#

View.visualize_projected_mesh(mesh, vertices_color='black', vertices_size=5, vertices_opacity=1.0, edges_color='black', edges_width=1, edges_opacity=1.0, faces_color='red', faces_opacity=0.5, clip_sensor=True, show_pixel_grid=False, show_vertices=True, show_edges=True, show_faces=True, title=None)[source]#

Visualize the projected 2D mesh of a pysdic.Mesh on a 2D plot using matplotlib.

Simply calls the camera’s own visualization method with image from the view.

See also

Parameters:
  • mesh (Mesh) – The 3D mesh to visualize.

  • vertices_color (str, optional) – The color of the mesh vertices (default is “black”).

  • vertices_size (int, optional) – The size of the mesh vertices (default is 5).

  • vertices_opacity (float, optional) – The opacity of the mesh vertices (default is 1.0).

  • edges_color (str, optional) – The color of the mesh edges (default is “black”).

  • edges_width (int, optional) – The width of the mesh edges (default is 1).

  • edges_opacity (float, optional) – The opacity of the mesh edges (default is 1.0).

  • faces_color (str, optional) – The color of the mesh faces (default is “red”).

  • faces_opacity (float, optional) – The opacity of the mesh faces (default is 0.5).

  • clip_sensor (bool, optional) – Whether to clip points outside the sensor dimensions (default is True).

  • show_pixel_grid (bool, optional) – Whether to show the pixel grid on the image (default is False).

  • show_vertices (bool, optional) – Whether to show the mesh vertices (default is True).

  • show_edges (bool, optional) – Whether to show the mesh edges (default is True).

  • show_faces (bool, optional) – Whether to show the mesh faces (default is True).

  • title (Optional[str], optional) – An optional title for the plot. If None, no title is displayed. Default is None.

Return type:

None