[Bug NPAL14335] EDF 344 SMESH : "ERROR : Iterator not implemented " when loading a script

Protect from sweeping volumes
This commit is contained in:
eap 2007-01-09 12:16:12 +00:00
parent 7cb53eb2a5
commit fe284ca490

View 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 ];