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 (from parent 1:
0b3661c
)
pre: fix bug EDF 7854: src/SMDS/SMDS_UnstructuredGrid.cxx SMDS_UnstructuredGrid:...
author
Paul RASCLE
<paul.rascle@edf.fr>
Mon, 5 May 2014 14:03:20 +0000
(16:03 +0200)
committer
Paul RASCLE
<paul.rascle@edf.fr>
Mon, 5 May 2014 14:03:20 +0000
(16:03 +0200)
src/SMDS/SMDS_UnstructuredGrid.cxx
patch
|
blob
|
history
diff --git
a/src/SMDS/SMDS_UnstructuredGrid.cxx
b/src/SMDS/SMDS_UnstructuredGrid.cxx
index 9d878c655810629fc6535305c1db79730fe19fdf..6012a4f38595e5d3befeb7539b86b784a7796395 100644
(file)
--- a/
src/SMDS/SMDS_UnstructuredGrid.cxx
+++ b/
src/SMDS/SMDS_UnstructuredGrid.cxx
@@
-1081,8
+1081,11
@@
SMDS_MeshCell* SMDS_UnstructuredGrid::extrudeVolumeFromFace(int vtkVolId,
double *coords = this->GetPoint(oldId);
SMDS_MeshNode *newNode = _mesh->AddNode(coords[0], coords[1], coords[2]);
newId = newNode->getVtkId();
double *coords = this->GetPoint(oldId);
SMDS_MeshNode *newNode = _mesh->AddNode(coords[0], coords[1], coords[2]);
newId = newNode->getVtkId();
- std::map<long, int> emptyMap;
- nodeQuadDomains[oldId] = emptyMap;
+ if (! nodeQuadDomains.count(oldId))
+ {
+ std::map<long, int> emptyMap;
+ nodeQuadDomains[oldId] = emptyMap;
+ }
nodeQuadDomains[oldId][dom1_2] = newId;
}
orderedNodes.push_back(newId);
nodeQuadDomains[oldId][dom1_2] = newId;
}
orderedNodes.push_back(newId);