22011: [CEA 736] Mesh ends with "Global 2D algorithm is missing"

In checkMissing(), check only sub-meshes on meshable shapes (edges,faces,solids)
This commit is contained in:
eap 2012-12-17 16:37:18 +00:00
parent 4f0a26fa4d
commit b69677548c

View File

@ -652,8 +652,15 @@ static bool checkMissing(SMESH_Gen* aGen,
set<SMESH_subMesh*>& aCheckedMap, set<SMESH_subMesh*>& aCheckedMap,
list< SMESH_Gen::TAlgoStateError > & theErrors) list< SMESH_Gen::TAlgoStateError > & theErrors)
{ {
if ( aSubMesh->GetSubShape().ShapeType() == TopAbs_VERTEX || switch ( aSubMesh->GetSubShape().ShapeType() )
aCheckedMap.count( aSubMesh )) {
case TopAbs_EDGE:
case TopAbs_FACE:
case TopAbs_SOLID: break; // check this submesh, it can be meshed
default:
return true; // not meshable submesh
}
if ( aCheckedMap.count( aSubMesh ))
return true; return true;
//MESSAGE("=====checkMissing"); //MESSAGE("=====checkMissing");