average_properties#

ifermi.analysis.average_properties(vertices, faces, properties, norm=False)[source]#

Average property across an isosurface.

Parameters:
  • vertices (ndarray) – A (n, 3) float array of the vertices in the isosurface.

  • faces (ndarray) – A (m, 3) int array of the faces of the isosurface.

  • properties (ndarray) – A (m, …) array of the face properties as scalars or vectors.

  • norm (bool) – Whether to average the norm of the properties (vector properties only).

Return type:

float | ndarray

Returns:

The averaged property.