pysdic.Mesh.compute_vertices_normals#

Mesh.compute_vertices_normals()[source]#

Compute the unit normal at each vertex of a 3D surface mesh (\(K = 2\), \(E = 3\)), as the mean of the normals of the elements weighted by their areas.

Shortcut for pysdic.fem.compute_vertices_normals() with the coordinates, connectivity and element type of the mesh.

Returns:

An array of shape \((N_v, 3)\) with the unit normal at each vertex (NaN for the vertices used by no valid element).

Return type:

numpy.ndarray