From: eap Date: Tue, 9 Jan 2007 12:16:12 +0000 (+0000) Subject: [Bug NPAL14335] EDF 344 SMESH : "ERROR : Iterator not implemented " when loading... X-Git-Tag: V3_2_5pre1~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe284ca49054ce21ea5e88be80fd75cc857aefa4;p=modules%2Fsmesh.git [Bug NPAL14335] EDF 344 SMESH : "ERROR : Iterator not implemented " when loading a script Protect from sweeping volumes --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 565d33acc..b3470ba4a 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -3216,7 +3216,7 @@ void SMESH_MeshEditor::RotationSweep(TIDSortedElemSet & theElems, TIDSortedElemSet::iterator itElem; for ( itElem = theElems.begin(); itElem != theElems.end(); itElem++ ) { const SMDS_MeshElement* elem = *itElem; - if ( !elem ) + if ( !elem || elem->GetType() == SMDSAbs_Volume ) continue; vector & newNodesItVec = mapElemNewNodes[ elem ]; newNodesItVec.reserve( elem->NbNodes() ); @@ -3393,7 +3393,7 @@ void SMESH_MeshEditor::ExtrusionSweep (TIDSortedElemSet & theElems, for ( itElem = theElems.begin(); itElem != theElems.end(); itElem++ ) { // check element type const SMDS_MeshElement* elem = *itElem; - if ( !elem ) + if ( !elem || elem->GetType() == SMDSAbs_Volume ) continue; vector & newNodesItVec = mapElemNewNodes[ elem ];