From: eap Date: Wed, 11 Jan 2012 08:15:48 +0000 (+0000) Subject: 0021270: EDF 1870 SMESH: ExtrusionAlongPathObjX + Merge nodes remove 3D elements X-Git-Tag: V6_5_0a1~212 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bfb3c2e489af93f438fb2d74507333441065e546;p=modules%2Fsmesh.git 0021270: EDF 1870 SMESH: ExtrusionAlongPathObjX + Merge nodes remove 3D elements in MergeNodes(), fix detection of replaced nodes of an elem --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 75fbb54bf..c9ed6af3a 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -7145,15 +7145,13 @@ void SMESH_MeshEditor::MergeNodes (TListOfListOfNodes & theGroupsOfNodes) } } // BUG 0020185: end - iRepl[ nbRepl++ ] = iCur; } curNodes[ iCur ] = n; bool isUnique = nodeSet.insert( n ).second; - if ( isUnique ) { + if ( isUnique ) uniqueNodes[ iUnique++ ] = n; - if ( nbRepl && iRepl[ nbRepl-1 ] == iCur ) - --nbRepl; // n do not stick to a node of the elem - } + else + iRepl[ nbRepl++ ] = iCur; iCur++; }