0021270: EDF 1870 SMESH: ExtrusionAlongPathObjX + Merge nodes remove 3D elements

in MergeNodes(), fix detection of replaced nodes of an elem
This commit is contained in:
eap 2012-01-11 08:15:48 +00:00
parent dc0cbc90ec
commit bfb3c2e489

View File

@ -7145,15 +7145,13 @@ void SMESH_MeshEditor::MergeNodes (TListOfListOfNodes & theGroupsOfNodes)
} }
} }
// BUG 0020185: end // BUG 0020185: end
iRepl[ nbRepl++ ] = iCur;
} }
curNodes[ iCur ] = n; curNodes[ iCur ] = n;
bool isUnique = nodeSet.insert( n ).second; bool isUnique = nodeSet.insert( n ).second;
if ( isUnique ) { if ( isUnique )
uniqueNodes[ iUnique++ ] = n; uniqueNodes[ iUnique++ ] = n;
if ( nbRepl && iRepl[ nbRepl-1 ] == iCur ) else
--nbRepl; // n do not stick to a node of the elem iRepl[ nbRepl++ ] = iCur;
}
iCur++; iCur++;
} }