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

Fix a bug in CentroidPoint #2875

Merged
merged 4 commits into from
Feb 22, 2019

Conversation

taketwo
Copy link
Member

@taketwo taketwo commented Feb 22, 2019

Currently there is an issue with retrieving centroid into a point type whose fields are a subset of the fields of the accumulated type. E.g. the following would not compile:

CentroidPoint<PointNormal> c;
Normal n;
c.get(n);

This PR fixes the bug and adds more unit tests. There are also a couple of cleanup commits.

Without this commit it is impossible to retrieve centroid into a point type whose fields are a subset of the fields of the accumulated type. E.g. the following would not compile:

CentroidPoint<PointNormal> c;
Normal n;
c.get(n);
@SergioRAgostinho SergioRAgostinho merged commit af77ecb into PointCloudLibrary:master Feb 22, 2019
@taketwo taketwo deleted the fix-centroid-point branch February 22, 2019 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants