From: kgv Date: Thu, 10 Jul 2014 05:25:59 +0000 (+0400) Subject: 0025066: Visualization - fit all is malfunction when bounding box is set through... X-Git-Tag: V6_8_0_beta~204 X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff_plain;h=ecc1d911d1c4a2d64019e70880f0726db37ec232 0025066: Visualization - fit all is malfunction when bounding box is set through Graphic3d_Group::SetMinMaxValues() Ensure bounding box is marked as valid. --- diff --git a/src/Graphic3d/Graphic3d_Group.cxx b/src/Graphic3d/Graphic3d_Group.cxx index 1c64878f83..bbc0022aa5 100644 --- a/src/Graphic3d/Graphic3d_Group.cxx +++ b/src/Graphic3d/Graphic3d_Group.cxx @@ -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 (theXMin), - static_cast (theYMin), - static_cast (theZMin), - 1.0f); - myBounds.CornerMax() = Graphic3d_Vec4 (static_cast (theXMax), - static_cast (theYMax), - static_cast (theZMax), - 1.0f); + myBounds = Graphic3d_BndBox4f (Graphic3d_Vec4 (static_cast (theXMin), + static_cast (theYMin), + static_cast (theZMin), + 1.0f), + Graphic3d_Vec4 (static_cast (theXMax), + static_cast (theYMax), + static_cast (theZMax), + 1.0f)); } // =======================================================================