pyblenderSDIC.meshes.TriangleMesh3D.uvmap#
- property TriangleMesh3D.uvmap: ndarray | None#
Get or set the UV map of the mesh.
The UV map is stored in the
uvmap
attribute of the mesh and has shape (M, 6), where M is the number of triangles. Each row contains the UV coordinates for a triangle in the format (u1, v1, u2, v2, u3, v3).# Get the UV map uvmap = mesh.uvmap # shape (M, 6) # Set the UV map mesh.uvmap = new_uvmap
To apply a single set of UV coordinates to all triangles, use the method
set_vertices_uvmap
instead.- Parameters:
value (Optional[numpy.ndarray]) – A NumPy array of shape (M, 6) representing the UV coordinates for each triangle in the mesh. If None, the mesh will not have UV mapping.