From: eap Date: Thu, 16 Oct 2008 07:33:07 +0000 (+0000) Subject: fix "Clear mesh data" X-Git-Tag: RELIQUAT_4x_25102008~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f65b4d861744ff755ebd3ea4377bda0c02ecea2a;p=modules%2Fsmesh.git fix "Clear mesh data" --- diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index 1283fb5e3..0b1e3cf9d 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -1928,7 +1928,7 @@ void SMDS_Mesh::Clear() while(itc!=myChildren.end()) (*itc)->Clear(); - myInfo = SMDS_MeshInfo(); + myInfo.Clear(); } /////////////////////////////////////////////////////////////////////////////// diff --git a/src/SMDS/SMDS_MeshInfo.hxx b/src/SMDS/SMDS_MeshInfo.hxx index 614791264..7ef925f17 100644 --- a/src/SMDS/SMDS_MeshInfo.hxx +++ b/src/SMDS/SMDS_MeshInfo.hxx @@ -5,6 +5,8 @@ #ifndef SMDS_MeshInfo_HeaderFile #define SMDS_MeshInfo_HeaderFile +using namespace std; + #include "SMESH_SMDS.hxx" #include "SMDS_MeshElement.hxx" @@ -14,6 +16,7 @@ class SMDS_EXPORT SMDS_MeshInfo public: inline SMDS_MeshInfo(); + inline void Clear(); int NbNodes() const { return myNbNodes; } @@ -123,6 +126,9 @@ inline SMDS_MeshInfo::SMDS_MeshInfo(): myNb[ index( SMDSAbs_Volume, 15)] = & myNbQuadPrisms; myNb[ index( SMDSAbs_Volume, 20)] = & myNbQuadHexas; } +inline void // Clear +SMDS_MeshInfo::Clear() +{ for ( int i=0; i