0021825: Error in the example of "Projection Algorithms" in the user's guide

In MakeComputed(), check if gen->Compute() is really OK
This commit is contained in:
eap 2012-08-31 12:03:32 +00:00
parent c9a4fdb5fc
commit 02c33dab50

View File

@ -2004,8 +2004,9 @@ bool StdMeshers_ProjectionUtils::MakeComputed(SMESH_subMesh * sm, const int iter
if ( !srcMesh )
srcMesh = mesh;
if ( MakeComputed( srcMesh->GetSubMesh( srcShape ), iterationNb + 1 ))
return gen->Compute( *mesh, sm->GetSubShape() );
if ( MakeComputed( srcMesh->GetSubMesh( srcShape ), iterationNb + 1 ) &&
gen->Compute( *mesh, sm->GetSubShape() ))
return sm->IsMeshComputed();
return false;
}