0021104: EDF 1715 SMESH: RotationSweepObject crashes Salome

fix makeWalls() for the case of the edge located on the rotation axis
This commit is contained in:
eap 2010-12-14 13:51:14 +00:00
parent db23033585
commit b90093289c

View File

@ -3885,6 +3885,8 @@ void SMESH_MeshEditor::makeWalls (TNodeOfNodeListMap & mapNewNodes,
const SMDS_MeshElement* elem = itElem->first;
vector<TNodeOfNodeListMapItr>& vecNewNodes = itElemNodes->second;
if(itElem->second.size()==0) continue;
if ( elem->GetType() == SMDSAbs_Edge ) {
// create a ceiling edge
if (!elem->IsQuadratic()) {
@ -3909,8 +3911,6 @@ void SMESH_MeshEditor::makeWalls (TNodeOfNodeListMap & mapNewNodes,
if ( elem->GetType() != SMDSAbs_Face )
continue;
if(itElem->second.size()==0) continue;
bool hasFreeLinks = false;
TIDSortedElemSet avoidSet;