correct the preceeding patch

This commit is contained in:
eap 2011-02-07 14:27:59 +00:00
parent 44bcdd8f8c
commit 977978e76d

View File

@ -1334,10 +1334,14 @@ bool StdMeshers_PrismAsBlock::Init(SMESH_MesherHelper* helper,
{
list< TopoDS_Face >::iterator faceIt = wallFaces.begin();
for ( ; faceIt != wallFaces.end(); ++faceIt )
for (TopExp_Explorer edge(*faceIt, TopAbs_EDGE); edge.More(); edge.Next()) {
if ( !helper->IsSubShape( edge.Current(), topSM->GetSubShape() ))
return error(COMPERR_BAD_SHAPE);
}
{
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);
}
}
// Find columns of wall nodes and calculate edges' lengths