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 );