mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +03:00
0030416: Incorrect implementation of the method Bnd_OBB::SquareExtent
The method Bnd_OBB::SquareExtent has been corrected.
This commit is contained in:
parent
3d999c6090
commit
4b97f9b15b
@ -254,9 +254,9 @@ public:
|
|||||||
//! Returns square diagonal of this box
|
//! Returns square diagonal of this box
|
||||||
Standard_Real SquareExtent() const
|
Standard_Real SquareExtent() const
|
||||||
{
|
{
|
||||||
return (4.0*myHDims[0] * myHDims[0] +
|
return 4.0 * (myHDims[0] * myHDims[0] +
|
||||||
myHDims[1] * myHDims[1] +
|
myHDims[1] * myHDims[1] +
|
||||||
myHDims[1] * myHDims[1]);
|
myHDims[2] * myHDims[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Check if the box do not interfere the other box.
|
//! Check if the box do not interfere the other box.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user