pyFM.mesh.geometry.per_vertex_normal_area

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

Compute per-vertex normals of a triangular mesh, weighted by the area of adjacent faces.

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

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

Returns:

vert_normals – Array of per-vertex normals.

Return type:

(n, 3) np.ndarray