cellcomplex.property_topomesh.io.read_ply_property_topomesh

cellcomplex.property_topomesh.io.read_ply_property_topomesh(ply_filename, verbose=False, fuse_elements=True, fuse_vertices=True)[source]

Read a PropertyTopomesh stored as a PLY file.

Read an ASCII-encoded PLY file containing a cell complex. The file can be a regular mesh file with only vertex and face elements, but it can also contain edge and volume elements that define topological elements of dimensions 1 and 3 respectively. Associated properties can be of int, float, string, vector or tensor types.

Parameters
  • ply_filename (str) – Path to the PLY file to read from

  • verbose (bool) – Whether to print all information read from the file

  • fuse_elements (bool) – Whether identical topological elements should be fused in a single wisp

  • fuse_vertices (bool) – Whether vertices at the same position should be fused in a single wisp

Returns

topomesh – Cell complex with all the element properties read from the file

Return type

cellcomplex.property_topomesh.PropertyTopomesh