-
Notifications
You must be signed in to change notification settings - Fork 277
[Core] Adding SearchInBoundingBox into GeometricalObjectsBins
#12601
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
base: master
Are you sure you want to change the base?
[Core] Adding SearchInBoundingBox into GeometricalObjectsBins
#12601
Conversation
…ore/SearchInBoundingBox-geometricalobjectbins
…cell BB is inside radius.
This reverts commit 0f77915.
…o avoid distance calculation
| max_point[0] = r_min_point[0] + (I + 1) * mCellSizes[0]; | ||
| max_point[1] = r_min_point[1] + (J + 1) * mCellSizes[1]; | ||
| max_point[2] = r_min_point[2] + (K + 1) * mCellSizes[2]; | ||
|
|
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.
Sorry, my bad, I thought that this is the bounding box check, not the radius. Then we should check the farthest point....
BTW, do we use this method?
| /***********************************************************************************/ | ||
|
|
||
| void GeometricalObjectsBins::SearchInBoundingBox( | ||
| const PointType& rPoint, |
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.
we don't need the point
| * @param rResults The results of the search | ||
| */ | ||
| void SearchInBoundingBox( | ||
| const PointType& rPoint, |
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.
Why this point? what to be checked?
| * @param rResults The results of the search | ||
| * @tparam TPointIteratorType The type of the point iterator | ||
| */ | ||
| template<typename TPointIteratorType> |
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.
I don't understand what this method does? The result should not depend on the point!
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.
I don't understand how do you search without a point to be searched
|
@pooyan-dadvand do you agree with las changes? |
|
@pooyan-dadvand check if this solution fits the comments |
Reminder |
|
@pooyan-dadvand we should retake this BTW |
Ping |
|
@pooyan-dadvand what is the status of this? |
📝 Description
Adding
SearchInBoundingBoxintoGeometricalObjectsBins. Uses as base the developments from Changes from #12599.NOTE: Current implementation checks if the the geometry is inside the given bounding box using the geometry method
HasIntersectionwhich could be expensive. Maybe we need to think an alternative or speed up current implementations.🆕 Changelog
IsInsidemethod toBoundingBoxclass #12600HasIntersectionmethod for performance #12605