pyFM.mesh.geometry.compute_faces_areas

pyFM.mesh.geometry.compute_faces_areas(vertices, faces)

Compute per-face areas of a triangular mesh.

Parameters:
  • vertices ((n, 3) np.ndarray) – Coordinates of the mesh vertices.

  • faces ((m, 3) np.ndarray) – Vertex indices defining the faces.

Returns:

faces_areas – Array of per-face areas.

Return type:

(m,) np.ndarray