mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
IPAL52557: TC7.5.0: default value in Hypothesis is different in new and saved studies
Use a precise bnd box to find the shape diagonal
This commit is contained in:
parent
dba2484945
commit
98115fe1b8
@ -58,6 +58,7 @@ SET(_link_LIBRARIES
|
||||
${CAS_TKG2d}
|
||||
${CAS_TKCDF}
|
||||
${GEOM_NMTTools}
|
||||
${GEOM_GEOMUtils}
|
||||
${Boost_LIBRARIES}
|
||||
SMESHDS
|
||||
SMESHControls
|
||||
|
@ -55,8 +55,10 @@
|
||||
#include "DriverCGNS_Write.hxx"
|
||||
#endif
|
||||
|
||||
#include <GEOMUtils.hxx>
|
||||
|
||||
#undef _Precision_HeaderFile
|
||||
#include <BRepBndLib.hxx>
|
||||
//#include <BRepBndLib.hxx>
|
||||
#include <BRepPrimAPI_MakeBox.hxx>
|
||||
#include <Bnd_Box.hxx>
|
||||
#include <TColStd_MapOfInteger.hxx>
|
||||
@ -327,7 +329,7 @@ double SMESH_Mesh::GetShapeDiagonalSize(const TopoDS_Shape & aShape)
|
||||
{
|
||||
if ( !aShape.IsNull() ) {
|
||||
Bnd_Box Box;
|
||||
BRepBndLib::Add(aShape, Box);
|
||||
GEOMUtils::PreciseBoundingBox(aShape, Box);
|
||||
return sqrt( Box.SquareExtent() );
|
||||
}
|
||||
return 0;
|
||||
|
@ -5386,7 +5386,7 @@ int _LayerEdge::Smooth(const int step, const bool isConcaveFace, const bool find
|
||||
// get worse?
|
||||
if ( nbOkAfter < nbOkBefore )
|
||||
continue;
|
||||
if (( isConcaveFace ) &&
|
||||
if (( isConcaveFace || findBest ) &&
|
||||
( nbOkAfter == nbOkBefore ) &&
|
||||
//( iFun > -1 || nbOkAfter < _simplices.size() ) &&
|
||||
( minVolAfter <= minVolBefore ))
|
||||
|
Loading…
Reference in New Issue
Block a user