Salome HOME
22364: EDF SMESH: Create Mesh dialog box improvement: hide inapplicable algorithms...
authoreap <eap@opencascade.com>
Mon, 3 Mar 2014 11:00:39 +0000 (15:00 +0400)
committereap <eap@opencascade.com>
Mon, 3 Mar 2014 11:00:39 +0000 (15:00 +0400)
  Minor fixes

src/StdMeshers/StdMeshers_Hexa_3D.cxx
src/StdMeshers/StdMeshers_Prism_3D.cxx
src/StdMeshers/StdMeshers_Quadrangle_2D.cxx
src/StdMeshers/StdMeshers_RadialPrism_3D.cxx

index 2ac7cafeb43d3559a90c68f8d76c21daad3de73e..d63ed2641651eb041a5019aa9992d957b28d85f3 100644 (file)
@@ -746,7 +746,7 @@ bool StdMeshers_Hexa_3D::Compute(SMESH_Mesh & aMesh, SMESH_MesherHelper* aHelper
  * \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
  */
 //================================================================================
 
@@ -765,7 +765,7 @@ bool StdMeshers_Hexa_3D::IsApplicable( const TopoDS_Shape & aShape, bool toCheck
     TopExp_Explorer exp1( exp0.Current(), TopAbs_SHELL );
     for ( ; exp1.More(); exp1.Next(), ++nbFoundShells)
       if ( nbFoundShells == 2 ) break;
-    if ( nbFoundShells == 2){
+    if ( nbFoundShells != 1 ) {
       if ( toCheckAll ) return false;
       continue;
     }   
index 5a1be1b5f1171a097b7f78528df9413e5db91c76..71412270d7c02c4b2bba9147eb03b54cc2878e71 100644 (file)
@@ -2134,7 +2134,7 @@ namespace // utils used by StdMeshers_Prism_3D::IsApplicable()
  * \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
  */
 //================================================================================
 
index 7b37553fd33b0cde09f49bf5bae57a454b8e4127..52bdb0aa560743b64e3cac0db68abdb3e52f726f 100644 (file)
@@ -909,7 +909,7 @@ bool StdMeshers_Quadrangle_2D::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
  */
 //================================================================================
 
@@ -939,7 +939,7 @@ bool StdMeshers_Quadrangle_2D::IsApplicable( const TopoDS_Shape & aShape, bool t
     if ( !toCheckAll && nbNoDegenEdges >= 3 ) return true;
   }
   return ( toCheckAll && nbFoundFaces != 0 );
-};
+}
 
 //================================================================================
 /*!
index ab9594c0e4fc0ab7e102d029ce95666f4ac4d904..17411417e315f49b649a018489b82e7ff8c00b0b 100644 (file)
@@ -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
  */
 //================================================================================