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

Add support to read and write comments in ply files #294

Merged
merged 1 commit into from Nov 19, 2020

Conversation

SBCV
Copy link
Contributor

@SBCV SBCV commented Nov 19, 2020

A small code snippet that illustrates the new features:

ifp = 'path/to/example.ply'
ofp = 'path/to/example_out.ply'

input_cloud = PyntCloud.from_file(ifp)
output_cloud = PyntCloud(
    input_cloud.points,
    mesh=input_cloud.mesh,
    comments=input_cloud.comments)
output_cloud.to_file(ofp, also_save=["comments", "mesh"])

Addresses also #272

Copy link
Owner

@daavoo daavoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@daavoo daavoo merged commit 9d81e8a into daavoo:master Nov 19, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants