Skip to content

Conversation

@loumalouomega
Copy link
Member

@loumalouomega loumalouomega commented Aug 1, 2024

📝 Description

Adding SearchInBoundingBox into GeometricalObjectsBins. 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 HasIntersection which could be expensive. Maybe we need to think an alternative or speed up current implementations.

🆕 Changelog

@loumalouomega loumalouomega requested a review from a team as a code owner October 9, 2024 22:30
@loumalouomega loumalouomega requested review from pooyan-dadvand and removed request for a team October 9, 2024 22:30
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];

Copy link
Member

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,
Copy link
Member

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,
Copy link
Member

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>
Copy link
Member

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!

Copy link
Member Author

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

@loumalouomega
Copy link
Member Author

@pooyan-dadvand do you agree with las changes?

@loumalouomega
Copy link
Member Author

@pooyan-dadvand check if this solution fits the comments

@loumalouomega
Copy link
Member Author

@pooyan-dadvand check if this solution fits the comments

Reminder

@loumalouomega
Copy link
Member Author

@pooyan-dadvand we should retake this BTW

@loumalouomega
Copy link
Member Author

@pooyan-dadvand we should retake this BTW

Ping

@loumalouomega
Copy link
Member Author

@pooyan-dadvand what is the status of this?

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.

3 participants