openalea.phenomenal.mesh.formats.write_vertices_faces_to_ply_file#

openalea.phenomenal.mesh.formats.write_vertices_faces_to_ply_file(filename, vertices, faces, vertices_colors=None, faces_colors=None) None[source]#

Write methods to save vertices and faces in ply format.

Parameters:
  • filename (str) – The name of the file to write to. Should be ending with .ply

  • vertices (list[tuple]) – An array of vertex positions.

  • faces (list[tuple]) – An array of faces id.

  • vertices_colors (list[tuple] (optional)) – An array of RGB color for each vertex.

  • faces_colors (list[tuple] (optional)) – An array of RGB color for each face.

Return type:

None