pyFM.mesh.file_utils.get_uv

pyFM.mesh.file_utils.get_uv(vertices, ind1, ind2, mult_const=1)

Extracts UV coordinates for a mesh for a .obj file

Parameters:
  • vertices (np.ndarray) – (n,3) coordinates of vertices

  • ind1 (int) – column index to use as first coordinate

  • ind2 (int) – column index to use as second coordinate

  • mult_const (float) – number of time to repeat the pattern

Returns:

uv – (n,2) UV coordinates of each vertex

Return type:

np.ndarray