fedoo.Mesh.plot_normals

Mesh.plot_normals(mag: float = 1.0, show_mesh: bool = True, **kargs) None

Simple functions to plot the normals of a surface Mesh.

This function is proposed for visual verification of normals orientations. The normals are plotted at the center of the elements.

Parameters:
  • mag (float, default=1) – Size of the arrows.

  • show_mesh (bool, default=True) – If False, the mesh is not rendered.

  • kargs (arguments directly passed to the pyvista) – add_mesh method. See the documentation of pyvista for available options.

Notes

If the package pyvistaqt is installed, the BackgroundPlotter is used by default. To desactivate pyvistaqt, set the fedoo config:

>>> fedoo.get_config()['USE_PYVISTA_QT'] = False