pre: fix bug EDF 7854: src/SMDS/SMDS_UnstructuredGrid.cxx SMDS_UnstructuredGrid::extrudeVolumeFromFace(...)

This commit is contained in:
Paul RASCLE 2014-05-05 16:03:20 +02:00
parent 0b3661cda0
commit f87f0664bb

View File

@ -1081,8 +1081,11 @@ SMDS_MeshCell* SMDS_UnstructuredGrid::extrudeVolumeFromFace(int vtkVolId,
double *coords = this->GetPoint(oldId); double *coords = this->GetPoint(oldId);
SMDS_MeshNode *newNode = _mesh->AddNode(coords[0], coords[1], coords[2]); SMDS_MeshNode *newNode = _mesh->AddNode(coords[0], coords[1], coords[2]);
newId = newNode->getVtkId(); newId = newNode->getVtkId();
std::map<long, int> emptyMap; if (! nodeQuadDomains.count(oldId))
nodeQuadDomains[oldId] = emptyMap; {
std::map<long, int> emptyMap;
nodeQuadDomains[oldId] = emptyMap;
}
nodeQuadDomains[oldId][dom1_2] = newId; nodeQuadDomains[oldId][dom1_2] = newId;
} }
orderedNodes.push_back(newId); orderedNodes.push_back(newId);