From 4b97f9b15b9ee39466ad827ec9f28688d893365d Mon Sep 17 00:00:00 2001
From: msv <msv@opencascade.com>
Date: Mon, 17 Dec 2018 15:16:55 +0300
Subject: [PATCH] 0030416: Incorrect implementation of the method
 Bnd_OBB::SquareExtent

The method Bnd_OBB::SquareExtent has been corrected.
---
 src/Bnd/Bnd_OBB.hxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Bnd/Bnd_OBB.hxx b/src/Bnd/Bnd_OBB.hxx
index d40d22ca93..e561d2b299 100644
--- a/src/Bnd/Bnd_OBB.hxx
+++ b/src/Bnd/Bnd_OBB.hxx
@@ -254,9 +254,9 @@ public:
   //! Returns square diagonal of this box
   Standard_Real SquareExtent() const
   {
-    return (4.0*myHDims[0] * myHDims[0] + 
-            myHDims[1] * myHDims[1] +
-            myHDims[1] * myHDims[1]);
+    return 4.0 * (myHDims[0] * myHDims[0] + 
+                  myHDims[1] * myHDims[1] +
+                  myHDims[2] * myHDims[2]);
   }
 
   //! Check if the box do not interfere the other box.