pyFM.mesh.geometry.per_vertex_normal_uniform¶
- pyFM.mesh.geometry.per_vertex_normal_uniform(vertices, faces, face_normals=None)¶
Compute per-vertex normals of a triangular mesh, with uniform weights across adjacent faces.
- Parameters:
vertices ((n, 3) np.ndarray) – Coordinates of the mesh vertices.
faces ((m, 3) np.ndarray) – Vertex indices defining the faces.
face_normals ((m, 3) np.ndarray, optional) – Per-face normals. Computed from the mesh if not provided.
- Returns:
vert_normals – Array of per-vertex normals.
- Return type:
(n, 3) np.ndarray