0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account

In ShapeToMesh(), delete submeshes
This commit is contained in:
eap 2009-05-25 11:24:54 +00:00
parent c7b8fb12f3
commit b5cb4a64fb

View File

@ -87,8 +87,11 @@ void SMESHDS_Mesh::ShapeToMesh(const TopoDS_Shape & S)
}
}
// - sub-meshes
myIndexToShape.Clear();
TShapeIndexToSubMesh::iterator i_sm = myShapeIndexToSubMesh.begin();
for ( ; i_sm != myShapeIndexToSubMesh.end(); ++i_sm )
delete i_sm->second;
myShapeIndexToSubMesh.clear();
myIndexToShape.Clear();
// - groups on geometry
set<SMESHDS_GroupBase*>::iterator gr = myGroups.begin();
while ( gr != myGroups.end() ) {