mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
+ inline SMDS_MeshInfo& operator=(const SMDS_MeshInfo& other);
This commit is contained in:
parent
c9acf11dee
commit
406dc55fef
@ -35,6 +35,7 @@ class SMDS_EXPORT SMDS_MeshInfo
|
||||
public:
|
||||
|
||||
inline SMDS_MeshInfo();
|
||||
inline SMDS_MeshInfo& operator=(const SMDS_MeshInfo& other);
|
||||
inline void Clear();
|
||||
|
||||
int NbNodes() const { return myNbNodes; }
|
||||
@ -161,6 +162,14 @@ inline SMDS_MeshInfo::SMDS_MeshInfo():
|
||||
myNb[ index( SMDSAbs_Volume, 20)] = & myNbQuadHexas;
|
||||
}
|
||||
|
||||
inline SMDS_MeshInfo& // operator=
|
||||
SMDS_MeshInfo::operator=(const SMDS_MeshInfo& other)
|
||||
{ for ( int i=0; i<myNb.size(); ++i ) if ( myNb[i] ) (*myNb[i])=(*other.myNb[i]);
|
||||
myNbPolygons = other.myNbPolygons;
|
||||
myNbPolyhedrons = other.myNbPolyhedrons;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline void // Clear
|
||||
SMDS_MeshInfo::Clear()
|
||||
{ for ( int i=0; i<myNb.size(); ++i ) if ( myNb[i] ) (*myNb[i])=0;
|
||||
|
Loading…
Reference in New Issue
Block a user