mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
[Bug NPAL14335] EDF 344 SMESH : "ERROR : Iterator not implemented " when loading a script
Protect from sweeping volumes
This commit is contained in:
parent
7cb53eb2a5
commit
fe284ca490
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user