mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 02:30:33 +05:00
In Clear(), nullify nb of poly elements
This commit is contained in:
parent
2e2429b291
commit
89c8e3eea7
@ -149,8 +149,9 @@ inline SMDS_MeshInfo::SMDS_MeshInfo():
|
|||||||
}
|
}
|
||||||
inline void // Clear
|
inline void // Clear
|
||||||
SMDS_MeshInfo::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
|
inline int // index
|
||||||
SMDS_MeshInfo::index(SMDSAbs_ElementType type, int nbNodes)
|
SMDS_MeshInfo::index(SMDSAbs_ElementType type, int nbNodes)
|
||||||
{ return nbNodes + myShift[ type ]; }
|
{ return nbNodes + myShift[ type ]; }
|
||||||
|
Loading…
Reference in New Issue
Block a user