pyFM.mesh.file_utilsΒΆ

Functions

get_uv(vertices, ind1, ind2[, mult_const])

Extracts UV coordinates for a mesh for a .obj file

read_obj(filepath[, load_normals, ...])

Read a .obj file containing a mesh.

read_off(filepath[, read_colors])

read a standard .off file

read_tri(filepath[, from_matlab])

Read a .tri file from TOSCA dataset

read_vert(filepath)

Read a .vert file from TOSCA dataset

write_mtl(filepath[, texture_im])

Writes a .mtl file for a .obj mesh.

write_obj(filepath, vertices[, faces, uv, ...])

Writes a .obj file with texture.

write_obj_texture(filepath, vertices, faces)

Writes a .obj file with texture, with a simpler interface than write_obj.

write_off(filepath, vertices, faces[, ...])

Writes a mesh to a .off file