From: eap Date: Fri, 16 Jan 2009 14:56:05 +0000 (+0000) Subject: 0019923: EDF 765 SMESH : default values of hypothesis X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6e94f69bb56904dc1a12a56ab375b645ada338a;p=modules%2Fsmesh.git 0019923: EDF 765 SMESH : default values of hypothesis store number of segments per box diagonal in SMESH_Gen not in SMESH_Mesh --- diff --git a/src/SMESH/SMESH_Mesh.hxx b/src/SMESH/SMESH_Mesh.hxx index 38012a223..d93f60ab5 100644 --- a/src/SMESH/SMESH_Mesh.hxx +++ b/src/SMESH/SMESH_Mesh.hxx @@ -130,10 +130,6 @@ public: std::list & aHypList, const bool andAncestors) const; - void SetNbElementsPerDiagonal(int nb) { _nbElemPerDiagonal = nb ;} - - int GetNbElementsPerDiagonal() { return _nbElemPerDiagonal; } - const std::list & GetLog() throw(SALOME_Exception); void ClearLog() throw(SALOME_Exception); @@ -274,7 +270,6 @@ protected: bool _isAutoColor; double _shapeDiagonal; //!< diagonal size of bounding box of shape to mesh - int _nbElemPerDiagonal; //!< nb elements per diagonal TopTools_IndexedDataMapOfShapeListOfShape _mapAncestors; diff --git a/src/StdMeshers/StdMeshers_Regular_1D.cxx b/src/StdMeshers/StdMeshers_Regular_1D.cxx index da059a272..72ac0c739 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.cxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.cxx @@ -162,7 +162,7 @@ bool StdMeshers_Regular_1D::CheckHypothesis ASSERT(hyp); _value[ BEG_LENGTH_IND ] = hyp->GetLength(); if ( hyp->GetUsePreestimatedLength() ) { - if ( int nbSeg = aMesh.GetNbElementsPerDiagonal() ) + if ( int nbSeg = aMesh.GetGen()->GetBoundaryBoxSegmentation() ) _value[ BEG_LENGTH_IND ] = aMesh.GetShapeDiagonalSize() / nbSeg; } ASSERT( _value[ BEG_LENGTH_IND ] > 0 );