pyFM.mesh.file_utils.write_mtl

pyFM.mesh.file_utils.write_mtl(filepath, texture_im='texture_1.jpg')

Writes a .mtl file for a .obj mesh.

Use the name of a texture image to define the material.

Parameters:
  • filepath (str) – path to file

  • texture_im (str, optional) – name of the image of texture. Default to ‘texture_1.jpg’, included in the package