-
Notifications
You must be signed in to change notification settings - Fork 55
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 principal direction extent #1008
Conversation
@lidakanari , could you please check that with these changes you get the expected results? |
Codecov Report
@@ Coverage Diff @@
## master #1008 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 36 36
Lines 2355 2350 -5
=========================================
- Hits 2355 2350 -5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function seems to return correct values for the tested cases. However, the signature of what it returns changes with respect to the previous one, as it now returns a vector of the same dimension as the input data. i.e. 2d point cloud returned 3d vector before, now it returns 2d.
Indeed, the dimension of the extents depends on the dimension of the points. Therefore, for 2D points it would return a 2D vector of extents, and for 3D a 3D respectively. For NeuroM purposes, only 3D points are used, so this is not really an issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that should be good. Also something to keep in mind, currently the extents are not sorted (i.e. largest to smallest). If this is by choice, it would be good to mention in documentation because it might be confusing.
That's true indeed. There was no requirement that they are sorted from max to min, which imho renders the Should I order them? |
I think you can implement a "major_extend" feature or order them (but that would be a breaking change). |
Fixes #1007