Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
645c3eb
)
0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account
author
eap
<eap@opencascade.com>
Mon, 25 May 2009 11:25:13 +0000
(11:25 +0000)
committer
eap
<eap@opencascade.com>
Mon, 25 May 2009 11:25:13 +0000
(11:25 +0000)
In ShapeToMesh(), delete submeshes
src/SMESHDS/SMESHDS_Mesh.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHDS/SMESHDS_Mesh.cxx
b/src/SMESHDS/SMESHDS_Mesh.cxx
index 25c772b2141a6c04f4ae37e223979383b0a9e377..63ebf3dba5a1aac970cecc58e6a2e04f5fc1f631 100644
(file)
--- a/
src/SMESHDS/SMESHDS_Mesh.cxx
+++ b/
src/SMESHDS/SMESHDS_Mesh.cxx
@@
-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() ) {