-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 a method to compute a bounding box enclosing a set of points #9630
Conversation
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com>
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.
Useful method, but this should have a moderately robust set of tests.
This is implemented on Mesh bevy/crates/bevy_render/src/mesh/mesh/mod.rs Line 465 in fb094ea
|
I've rewritten the |
…yengine#9630) # Objective Make it easier to create bounding boxes in user code by providing a constructor that computes a box surrounding an arbitrary number of points. ## Solution Add `Aabb::enclosing`, which accepts iterators, slices, or arrays. --------- Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com>
Objective
Make it easier to create bounding boxes in user code by providing a constructor that computes a box surrounding an arbitrary number of points.
Solution
Add
Aabb::enclosing
, which accepts iterators, slices, or arrays.