X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_RadialPrism_3D.cxx;h=17411417e315f49b649a018489b82e7ff8c00b0b;hb=0de979b4949cfda1ed932273abb9a92ecc71a4ec;hp=f6d39bd3e218246ecd513218c2f42b59724cc65f;hpb=f34590a67f2edb641d0842156e1b2f41a57b192f;p=modules%2Fsmesh.git diff --git a/src/StdMeshers/StdMeshers_RadialPrism_3D.cxx b/src/StdMeshers/StdMeshers_RadialPrism_3D.cxx index f6d39bd3e..17411417e 100644 --- a/src/StdMeshers/StdMeshers_RadialPrism_3D.cxx +++ b/src/StdMeshers/StdMeshers_RadialPrism_3D.cxx @@ -604,7 +604,7 @@ bool StdMeshers_RadialPrism_3D::Evaluate(SMESH_Mesh& aMesh, * \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 */ //================================================================================ @@ -625,7 +625,10 @@ bool StdMeshers_RadialPrism_3D::IsApplicable( const TopoDS_Shape & aShape, bool } 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 );