Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IPAL52557: TC7.5.0: default value in Hypothesis is different in new and saved studies
[modules/smesh.git]
/
src
/
SMESH
/
SMESH_Mesh.cxx
diff --git
a/src/SMESH/SMESH_Mesh.cxx
b/src/SMESH/SMESH_Mesh.cxx
index 7692f9f0e1ff690412fddde109d55e491ada1165..8b27cba540b680b93615827cc5839de99b88cd20 100644
(file)
--- a/
src/SMESH/SMESH_Mesh.cxx
+++ b/
src/SMESH/SMESH_Mesh.cxx
@@
-55,8
+55,10
@@
#include "DriverCGNS_Write.hxx"
#endif
#include "DriverCGNS_Write.hxx"
#endif
+#include <GEOMUtils.hxx>
+
#undef _Precision_HeaderFile
#undef _Precision_HeaderFile
-#include <BRepBndLib.hxx>
+
//
#include <BRepBndLib.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <Bnd_Box.hxx>
#include <TColStd_MapOfInteger.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <Bnd_Box.hxx>
#include <TColStd_MapOfInteger.hxx>
@@
-226,7
+228,7
@@
SMESH_Mesh::~SMESH_Mesh()
bool SMESH_Mesh::MeshExists( int meshId ) const
{
bool SMESH_Mesh::MeshExists( int meshId ) const
{
- return _myDocument ?
_myDocument->GetMesh( meshId
) : false;
+ return _myDocument ?
bool( _myDocument->GetMesh( meshId )
) : false;
}
//=============================================================================
}
//=============================================================================
@@
-327,7
+329,7
@@
double SMESH_Mesh::GetShapeDiagonalSize(const TopoDS_Shape & aShape)
{
if ( !aShape.IsNull() ) {
Bnd_Box Box;
{
if ( !aShape.IsNull() ) {
Bnd_Box Box;
-
BRepBndLib::Add
(aShape, Box);
+
GEOMUtils::PreciseBoundingBox
(aShape, Box);
return sqrt( Box.SquareExtent() );
}
return 0;
return sqrt( Box.SquareExtent() );
}
return 0;