pysdic.display_pixel_integration_points#

display_pixel_integration_points(mesh, camera, *, warp_by=None, mask=None, stride=1, color='blue', point_size=2.0, channel=0, title=None, show=True)[source]#

Display in 3D the material points of a surface mesh seen by the pixels of a camera (see compute_pixel_integration_points()): the intersections of the rays of the pixels with the (deformed) mesh.

For a pysdic.View, the points are colored by the gray level of their pixel: the image is “painted” on the surface. For a pysdic.Camera, they have the color color.

Important

Requires the optional package pyvista (display), and open3d for a 3D mesh.

Parameters:
  • mesh (pysdic.Mesh) – The surface mesh (with an element type), of dimension \(E = 2\) or \(3\) equal to the input dimension of the camera.

  • camera (Union[pysdic.Camera, pysdic.View]) – The camera, or a view.

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

  • mask (Optional[ArrayLike], optional) – A boolean mask of the pixels to use, see compute_pixel_integration_points().

  • stride (Integral, optional (default: 1)) – Only one point out of stride is displayed (in the order of the pixels), to lighten the display of large images.

  • color (str, optional (default: "blue")) – The color of the points for a camera.

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

  • channel (Integral, optional (default: 0)) – The channel of the image used for the colors, for an image with several channels.

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

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

Returns:

The plotter.

Return type:

pysdic.Plotter3D