From fe284ca49054ce21ea5e88be80fd75cc857aefa4 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 9 Jan 2007 12:16:12 +0000 Subject: [PATCH] [Bug NPAL14335] EDF 344 SMESH : "ERROR : Iterator not implemented " when loading a script Protect from sweeping volumes --- src/SMESH/SMESH_MeshEditor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ];