cellcomplex.property_topomesh.io.save_ply_property_topomesh¶
-
cellcomplex.property_topomesh.io.save_ply_property_topomesh(topomesh, ply_filename, properties_to_save={0: [], 1: ['length'], 2: ['area', 'epidermis'], 3: []}, position_name='barycenter', verbose=True)[source]¶ Write a PropertyTopomesh as a standard PLY file.
Save a PropertyTopomesh object into a ASCII-formatted PLY file with a subset of element properties written into the file. The written file is readable by other mesh processing tools, and contains all the necessary information to reconstruct the PropertyTopomesh including all topological relationships and element properties.
- Parameters
topomesh (
cellcomplex.property_topomesh.PropertyTopomesh) – The PropertyTopomesh instance to saveply_filename (str) – Path to the PLY file to write to
properties_to_save (dict) – Dictionary containing ,for each degree, the list of properties to write in the file
position_name (str) – Property name used to define the XYZ position of vertices (default : barycenter)
verbose (bool) – Whether to print information while writing the file