* \brief Return true if the algorithm can mesh this shape
* \param [in] aShape - shape to check
* \param [in] toCheckAll - if true, this check returns OK if all shapes are OK,
- * else, returns OK if all at least one shape is OK
+ * else, returns OK if at least one shape is OK
*/
//================================================================================
}
shell[ nbShells-1 ] = It.Value();
}
- if ( nbShells != 2 ) continue;
+ if ( nbShells != 2 ) {
+ if ( toCheckAll ) return false;
+ continue;
+ }
int nbFaces1 = SMESH_MesherHelper:: Count( shell[0], TopAbs_FACE, 0 );
int nbFaces2 = SMESH_MesherHelper:: Count( shell[1], TopAbs_FACE, 0 );