In Clear(), nullify nb of poly elements

This commit is contained in:
eap 2009-02-25 15:13:26 +00:00
parent 455ceefa49
commit 167a4d4243

View File

@ -149,8 +149,9 @@ inline SMDS_MeshInfo::SMDS_MeshInfo():
}
inline void // Clear
SMDS_MeshInfo::Clear()
{ for ( int i=0; i<myNb.size(); ++i ) if ( myNb[i] ) (*myNb[i])=0; }
{ for ( int i=0; i<myNb.size(); ++i ) if ( myNb[i] ) (*myNb[i])=0;
myNbPolygons=myNbPolyhedrons=0;
}
inline int // index
SMDS_MeshInfo::index(SMDSAbs_ElementType type, int nbNodes)
{ return nbNodes + myShift[ type ]; }