]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
[Bug NPAL14335] EDF 344 SMESH : "ERROR : Iterator not implemented " when loading...
authoreap <eap@opencascade.com>
Tue, 9 Jan 2007 12:16:12 +0000 (12:16 +0000)
committereap <eap@opencascade.com>
Tue, 9 Jan 2007 12:16:12 +0000 (12:16 +0000)
Protect from sweeping volumes

src/SMESH/SMESH_MeshEditor.cxx

index 565d33accb09156bc6b14fb221ac246c088ddbf1..b3470ba4a9684bf67d982f604f4070e49a4bfaff 100644 (file)
@@ -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<TNodeOfNodeListMapItr> & 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<TNodeOfNodeListMapItr> & newNodesItVec = mapElemNewNodes[ elem ];