projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d999c6
)
0030416: Incorrect implementation of the method Bnd_OBB::SquareExtent
author
msv
<msv@opencascade.com>
Mon, 17 Dec 2018 12:16:55 +0000
(15:16 +0300)
committer
msv
<msv@opencascade.com>
Mon, 17 Dec 2018 12:16:55 +0000
(15:16 +0300)
The method Bnd_OBB::SquareExtent has been corrected.
src/Bnd/Bnd_OBB.hxx
patch
|
blob
|
blame
|
history
diff --git
a/src/Bnd/Bnd_OBB.hxx
b/src/Bnd/Bnd_OBB.hxx
index
d40d22c
..
e561d2b
100644
(file)
--- 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.