Python package for conversion of binary_liitle_endian to ascii for a ply format file?

645 views Asked by At

I am looking to convert a little endian binary TO ASCII for a ply file. I am looking for a package in python to do the same.

This can be easily done using cloud compare software but I am looking for a python package. I was trying uu.decode but it didn't seem to help.

1

There are 1 answers

2
Darsh Ranjan On

I'm actually the author of exactly such a package: https://github.com/dranjan/python-plyfile

It should be as simple as reading in the PLY file and setting the text attribute:

data = plyfile.PlyData.read('somefile.ply')
data.text = True
data.write('somefile-txt.ply')