1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0025066: Visualization - fit all is malfunction when bounding box is set through Graphic3d_Group::SetMinMaxValues()

Ensure bounding box is marked as valid.
This commit is contained in:
kgv 2014-07-10 09:25:59 +04:00 committed by bugmaster
parent a7b491fc50
commit ecc1d911d1

View File

@ -185,14 +185,14 @@ Standard_Boolean Graphic3d_Group::IsEmpty() const
void Graphic3d_Group::SetMinMaxValues (const Standard_Real theXMin, const Standard_Real theYMin, const Standard_Real theZMin,
const Standard_Real theXMax, const Standard_Real theYMax, const Standard_Real theZMax)
{
myBounds.CornerMin() = Graphic3d_Vec4 (static_cast<Standard_ShortReal> (theXMin),
static_cast<Standard_ShortReal> (theYMin),
static_cast<Standard_ShortReal> (theZMin),
1.0f);
myBounds.CornerMax() = Graphic3d_Vec4 (static_cast<Standard_ShortReal> (theXMax),
static_cast<Standard_ShortReal> (theYMax),
static_cast<Standard_ShortReal> (theZMax),
1.0f);
myBounds = Graphic3d_BndBox4f (Graphic3d_Vec4 (static_cast<Standard_ShortReal> (theXMin),
static_cast<Standard_ShortReal> (theYMin),
static_cast<Standard_ShortReal> (theZMin),
1.0f),
Graphic3d_Vec4 (static_cast<Standard_ShortReal> (theXMax),
static_cast<Standard_ShortReal> (theYMax),
static_cast<Standard_ShortReal> (theZMax),
1.0f));
}
// =======================================================================