-
-
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
is_dense not properly set when loading PLY files #1455
Comments
👍 When you submit the PR for this can you please uncomment the lines in the color test? |
Ok but I'm not sure how should I check if the values are finite or not, I see 2 options:
The scalar values are parsed here but I don't see an easy way to modify the |
Can't we check it in the global loop? I guess it's this one: https://github.com/PointCloudLibrary/pcl/blob/master/io/src/ply_io.cpp#L603 |
We only go into this loop if the PLY file has the range_grid field. |
@VictorLamoine Notice that at some point, the value inferred in here needs to be stored on the pointcloud/blob. That happens further ahead, probably in whatever get's called in here. |
I have the impression it takes place here. Now the question for me is, under which conditions do you set |
Yes it's exactly here, using if (!pcl_isfinite (value))
cloud_->is_dense = false; I was about to ask the same question, the documentation is not very clear about this: If the color is invalid, should we set the point cloud to non dense? Etc. |
is_dense
is wrongly set to false when loading a PLY cloud (reported here and here).This line is responsible: io/src/ply_io.cpp#L62
Is must be set to true, and when adding vertex the variable should be set to false if one of the components is not finite.
Test code:
#1433
It should be tested within PCL:
#1381 (comment)
The text was updated successfully, but these errors were encountered: