Skip to content

Commit

Permalink
Order bounding box corners to be plottable
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenZephyr committed Jul 13, 2024
1 parent d256dc4 commit a37a7df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bounding_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,13 @@ std::array<Eigen::Vector3f, 8> BoundingBox::corners() const {
std::array<Eigen::Vector3f, 8> corners = {
min,
{max(0), min(1), min(2)},
{min(0), max(1), min(2)},
{max(0), max(1), min(2)},
{min(0), max(1), min(2)},

{min(0), min(1), max(2)},
{max(0), min(1), max(2)},
{min(0), max(1), max(2)},
max,
{min(0), max(1), max(2)},
};
if (hasRotation()) {
for (Eigen::Vector3f& corner : corners) {
Expand Down

0 comments on commit a37a7df

Please sign in to comment.