-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
PLYReader fails to read without extra line at the end nor comment #3487
Comments
I have virtually the same environment, but Tests 3 and 4 indeed fail, however, I'm not sure if this is a bug. According to Wikipedia:
For me it reads as if comments are only allowed in the header, not in the "body" of the file. |
@taketwo are you creating It does sound like
or
or
Currently, I am doing it in a hacky way like the below
Appending at the end is the only way to not having to write the file 2 times. Do you think it's easier to change the |
Your Environment
Context
PLYReader fails to read ply file in a few simple scenarios.
Code to Reproduce
test1.ply is the only scenario that it will read successfully
If we simply delete the last empty line from test1.ply to become test2.ply it fails
If we add a comment at the end as shown in test3.ply it also fails
Even if we add another empty line after the comment it still fails as shown in test4.ply
I can open all 4 scenarios without a problem in meshlab, and I think it should be reasonable to expect PCL to be able to handle this. For the 3 failure cases, the error message is all the same as below
When I look into the source code here, there are multiple places that will trigger "parse error", can someone give me pointers on where should I look into in order to fix this problem?
The text was updated successfully, but these errors were encountered: