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
Add wrappers for ArborX::Sphere #13565
Conversation
1feb029
to
3f2c227
Compare
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.
Just a few very superficial comments from me, otherwise I think this looks good. Thanks @Rombur!
spheres.reserve(size); | ||
for (unsigned int i = 0; i < size; ++i) | ||
{ | ||
spheres.emplace_back(std::make_pair( |
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.
Do you wish to add here the same comment that you make later, i.e.
// ArborX assumes that the center coordinates and the radius use float and
// the sphere is 3D
?
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.
Apart from @jppelteret's comments, this looks good to me.
I have updated the documentation |
/rebuild |
ArborX supports three different geometrical objects:
Box
,Point
, andSphere
. We already have wrappers forBox
andPoint
, this PR adds wrappers forSphere
.