In Clear(), nullify nb of poly elements

This commit is contained in:
eap 2009-02-25 15:17:05 +00:00
parent 2e2429b291
commit 89c8e3eea7

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 ]; }