pyblenderSDIC.meshes.TriangleMesh3D.set_vertices_uvmap#

TriangleMesh3D.set_vertices_uvmap(value: ndarray | None) None[source]#

Set the UV mapping coordinates based on the vertices.

For each triangle in the mesh, this method set the UV mapping coordinates based on the vertex UV mapping.

The UV coordinates are expected to be a NumPy array of shape (N, 2), where N is the number of vertices and each row contains the UV coordinates in the format (u, v).

Parameters:

value (Optional[numpy.ndarray]) – A NumPy array of shape (N, 2) representing the UV coordinates for each vertex in the mesh. Each row should contain the UV coordinates in the format (u, v). If None, the mesh will not have UV mapping.

Raises:

ValueError – If the shape of the value is not (N, 2).