mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 17:50:34 +05:00
0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account
In ShapeToMesh(), delete submeshes
This commit is contained in:
parent
c7b8fb12f3
commit
b5cb4a64fb
@ -87,8 +87,11 @@ void SMESHDS_Mesh::ShapeToMesh(const TopoDS_Shape & S)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// - sub-meshes
|
// - sub-meshes
|
||||||
myIndexToShape.Clear();
|
TShapeIndexToSubMesh::iterator i_sm = myShapeIndexToSubMesh.begin();
|
||||||
|
for ( ; i_sm != myShapeIndexToSubMesh.end(); ++i_sm )
|
||||||
|
delete i_sm->second;
|
||||||
myShapeIndexToSubMesh.clear();
|
myShapeIndexToSubMesh.clear();
|
||||||
|
myIndexToShape.Clear();
|
||||||
// - groups on geometry
|
// - groups on geometry
|
||||||
set<SMESHDS_GroupBase*>::iterator gr = myGroups.begin();
|
set<SMESHDS_GroupBase*>::iterator gr = myGroups.begin();
|
||||||
while ( gr != myGroups.end() ) {
|
while ( gr != myGroups.end() ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user