pyblenderSDIC.meshes.TriangleMesh3D.vertex_normals#
- property TriangleMesh3D.vertex_normals: ndarray | None#
Get the normals of the vertices in the mesh.
The normals are computed as the average of the normals of the triangles that share each vertex. The normals are represented as a NumPy array of shape (N, 3), where N is the number of vertices.
See also
The method
compute_vertex_normals
can be used to compute the normals if they are not already computed.Warning
This property uses
numpy.asarray
on the internalvertex_normals
array. As a result, any modification to the returned or setted array directly affects the mesh data. To avoid unintentional updates, assign a copy instead.- Returns:
A NumPy array of shape (N, 3) representing the normals of the vertices in the mesh. If not computed, returns None.
- Return type:
Optional[numpy.ndarray]