mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
fix "Clear mesh data"
This commit is contained in:
parent
6de20c7221
commit
b110ecd69d
@ -1928,7 +1928,7 @@ void SMDS_Mesh::Clear()
|
|||||||
while(itc!=myChildren.end())
|
while(itc!=myChildren.end())
|
||||||
(*itc)->Clear();
|
(*itc)->Clear();
|
||||||
|
|
||||||
myInfo = SMDS_MeshInfo();
|
myInfo.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
// Created : Mon Sep 24 18:32:41 2007
|
// Created : Mon Sep 24 18:32:41 2007
|
||||||
// Author : Edward AGAPOV (eap)
|
// Author : Edward AGAPOV (eap)
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
#ifndef SMDS_MeshInfo_HeaderFile
|
#ifndef SMDS_MeshInfo_HeaderFile
|
||||||
#define SMDS_MeshInfo_HeaderFile
|
#define SMDS_MeshInfo_HeaderFile
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
#include "SMESH_SMDS.hxx"
|
#include "SMESH_SMDS.hxx"
|
||||||
|
|
||||||
#include "SMDS_MeshElement.hxx"
|
#include "SMDS_MeshElement.hxx"
|
||||||
@ -16,6 +16,7 @@ class SMDS_EXPORT SMDS_MeshInfo
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
inline SMDS_MeshInfo();
|
inline SMDS_MeshInfo();
|
||||||
|
inline void Clear();
|
||||||
|
|
||||||
int NbNodes() const { return myNbNodes; }
|
int NbNodes() const { return myNbNodes; }
|
||||||
|
|
||||||
@ -125,6 +126,9 @@ inline SMDS_MeshInfo::SMDS_MeshInfo():
|
|||||||
myNb[ index( SMDSAbs_Volume, 15)] = & myNbQuadPrisms;
|
myNb[ index( SMDSAbs_Volume, 15)] = & myNbQuadPrisms;
|
||||||
myNb[ index( SMDSAbs_Volume, 20)] = & myNbQuadHexas;
|
myNb[ index( SMDSAbs_Volume, 20)] = & myNbQuadHexas;
|
||||||
}
|
}
|
||||||
|
inline void // Clear
|
||||||
|
SMDS_MeshInfo::Clear()
|
||||||
|
{ for ( int i=0; i<myNb.size(); ++i ) if ( myNb[i] ) (*myNb[i])=0; }
|
||||||
|
|
||||||
inline int // index
|
inline int // index
|
||||||
SMDS_MeshInfo::index(SMDSAbs_ElementType type, int nbNodes)
|
SMDS_MeshInfo::index(SMDSAbs_ElementType type, int nbNodes)
|
||||||
|
Loading…
Reference in New Issue
Block a user