Salome HOME
23102: [CEA 1486 ] Add the parameters for defining the boundary layers V7_7_0a1 V7_7_0b1
authoreap <eap@opencascade.com>
Fri, 7 Aug 2015 14:03:07 +0000 (17:03 +0300)
committereap <eap@opencascade.com>
Fri, 7 Aug 2015 14:03:07 +0000 (17:03 +0300)
  facesWithLayers is obligatory parameter
  Dot't try to use inexistent gmf file

src/HexoticPlugin/HexoticPLUGINBuilder.py
src/HexoticPlugin/HexoticPlugin_Hexotic.cxx

index 7edd7d55bc400fd7e72d236f52a579b01ff76289..849547feabab74cfaec66c01289f846c7357932f 100644 (file)
@@ -126,16 +126,16 @@ class Hexotic_Algorithm(Mesh_Algorithm):
     #  @param firstLayerSize height of the first layer
     #  @param growth geometric progression for the boundary layer growth
     #  @param direction describes whether the layers grow inwards or outwards. 
-    #         if direction is:
-    #         \c Inward : means the layers grow inwards,
-    #         \c Outward : means the layers grow outwards
-    #  @param facesWithLayers list of surface references from which the boundary
+    #         Possible values are:
+    #         - \c smeshBuilder.Inward : means the layers grow inwards,
+    #         - \c smeshBuilder.Outward : means the layers grow outwards
+    #  @param facesWithLayers list of surfaces from which the boundary
     #         layers should be grown
-    #  @param imprintedFaces list of surface references that can be imprinted by
+    #  @param imprintedFaces list of surfaces that can be imprinted by
     #         boundary layers
     #  @return hypothesis object
     def SetViscousLayers(self, numberOfLayers, firstLayerSize, growth, 
-                          direction=Inward, facesWithLayers=[], imprintedFaces=[]): 
+                          facesWithLayers, imprintedFaces=[], direction=Inward): 
         self.Parameters().SetNbLayers(numberOfLayers)
         self.Parameters().SetFirstLayerSize(firstLayerSize)
         self.Parameters().SetGrowth(growth)
index 7c781af360af20b62d5bd869aacda5277cd6a534..eeee0c272c4eea824e616e8c9f734719f1c1ad57 100644 (file)
@@ -1592,8 +1592,9 @@ bool HexoticPlugin_Hexotic::Compute(SMESH_Mesh&          aMesh,
 #ifdef WITH_BLSURFPLUGIN
     bool defaultInputFile = true;
     if (_blsurfHypo && !_blsurfHypo->GetQuadAllowed()) {
-      Hexotic_In = TCollection_AsciiString(_blsurfHypo->GetGMFFile().c_str());
-      if (Hexotic_In != "")
+      Hexotic_In = _blsurfHypo->GetGMFFile().c_str();
+      if ( !Hexotic_In.IsEmpty() &&
+           SMESH_File( _blsurfHypo->GetGMFFile() ).exists() )
         defaultInputFile = false;
     }
     if (defaultInputFile) {