From 48ba15acba02b9d4915dcb9223e26ef41a008904 Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Fri, 3 Jun 2016 20:46:06 +0200 Subject: [PATCH] Fix AABB --- include/hpp/fcl/BV/AABB.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/hpp/fcl/BV/AABB.h b/include/hpp/fcl/BV/AABB.h index d0ffca34..f71d1a0c 100644 --- a/include/hpp/fcl/BV/AABB.h +++ b/include/hpp/fcl/BV/AABB.h @@ -143,16 +143,16 @@ public: /// @brief Merge the AABB and a point inline AABB& operator += (const Vec3f& p) { - min_.array().min(p.array()); - max_.array().max(p.array()); + min_ = min_.cwiseMin(p); + max_ = max_.cwiseMax(p); return *this; } /// @brief Merge the AABB and another AABB inline AABB& operator += (const AABB& other) { - min_.array().min(other.min_.array()); - max_.array().max(other.max_.array()); + min_ = min_.cwiseMin(other.min_); + max_ = max_.cwiseMax(other.max_); return *this; } -- GitLab