python-plyfile
python-plyfile copied to clipboard
binary_little_endian to ascii
Hi, authors: the plyfile can read the mesh ply files, and how to convert the binary_little_endian to ascii?
Thanks! Yours, sincerely.
The simplest way is to set the text attribute of the PlyData instance to True.
f_in = open(C://file_in.ply, 'r') f_out = open(C://file_out.ply, 'w+')
data = plyfile.PlyData.read(f_in) data.text = True data.write(f_out) f_in.close() f_out.close()
Exactly, @smoluck.
I'm going to close this, since the issue seems to have been resolved.