Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary_little_endian to ascii #47

Closed
ziwenjie opened this issue Jun 13, 2022 · 3 comments
Closed

binary_little_endian to ascii #47

ziwenjie opened this issue Jun 13, 2022 · 3 comments

Comments

@ziwenjie
Copy link

Hi, authors:
the plyfile can read the mesh ply files, and how to convert the binary_little_endian to ascii?

Thanks!
Yours, sincerely.

@dranjan
Copy link
Owner

dranjan commented Jun 13, 2022

The simplest way is to set the text attribute of the PlyData instance to True.

@smoluck
Copy link

smoluck commented Feb 16, 2023

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()

@dranjan
Copy link
Owner

dranjan commented Feb 16, 2023

Exactly, @smoluck.

I'm going to close this, since the issue seems to have been resolved.

@dranjan dranjan closed this as completed Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants