mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
correct the preceeding patch
This commit is contained in:
parent
44bcdd8f8c
commit
977978e76d
@ -1334,8 +1334,12 @@ bool StdMeshers_PrismAsBlock::Init(SMESH_MesherHelper* helper,
|
|||||||
{
|
{
|
||||||
list< TopoDS_Face >::iterator faceIt = wallFaces.begin();
|
list< TopoDS_Face >::iterator faceIt = wallFaces.begin();
|
||||||
for ( ; faceIt != wallFaces.end(); ++faceIt )
|
for ( ; faceIt != wallFaces.end(); ++faceIt )
|
||||||
for (TopExp_Explorer edge(*faceIt, TopAbs_EDGE); edge.More(); edge.Next()) {
|
{
|
||||||
if ( !helper->IsSubShape( edge.Current(), topSM->GetSubShape() ))
|
bool hasCommon = false;
|
||||||
|
for (TopExp_Explorer edge(*faceIt, TopAbs_EDGE); !hasCommon && edge.More(); edge.Next())
|
||||||
|
if ( helper->IsSubShape( edge.Current(), topSM->GetSubShape() ))
|
||||||
|
hasCommon = true;
|
||||||
|
if ( !hasCommon )
|
||||||
return error(COMPERR_BAD_SHAPE);
|
return error(COMPERR_BAD_SHAPE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user