]> SALOME platform Git repositories - plugins/hexoticplugin.git/commitdiff
Salome HOME
23102: [CEA 1486 ] Add the parameters for defining the boundary layers
authoreap <eap@opencascade.com>
Fri, 7 Aug 2015 12:39:33 +0000 (15:39 +0300)
committereap <eap@opencascade.com>
Fri, 7 Aug 2015 12:39:33 +0000 (15:39 +0300)
 Do not pass invalid and incomplete VL parameters

src/HexoticPlugin/HexoticPlugin_Hexotic.cxx

index 568fae09d0ac3f2fbea9caf789552490e238bad1..7c781af360af20b62d5bd869aacda5277cd6a534 100644 (file)
@@ -1093,23 +1093,19 @@ std::string HexoticPlugin_Hexotic::getHexoticCommand(const TCollection_AsciiStri
   if (_sizeMaps.begin() != _sizeMaps.end())
     run_Hexotic += sizeMap + Hexotic_SizeMap_Prefix;
 
-  if (_nbLayers > 0)
+  if (_nbLayers       > 0 &&
+      _firstLayerSize > 0 &&
+      _growth         > 0 &&
+      !_facesWithLayers.empty())
+  {
     run_Hexotic += comNbLayers + nbLayers;
-
-  if (_firstLayerSize > 0)
     run_Hexotic += comFirstLayerSize + firstLayerSize;
-
-  run_Hexotic += comDirection + direction;
-
-  if (_growth > 0)
+    run_Hexotic += comDirection + direction;
     run_Hexotic += comGrowth + growth;
-
-  if (!_facesWithLayers.empty())
     run_Hexotic += comFacesWithLayers + facesWithLayers;
-
-  if (!_imprintedFaces.empty())
-    run_Hexotic += comImptintedFaces + imprintedFaces;
-
+    if (!_imprintedFaces.empty())
+      run_Hexotic += comImptintedFaces + imprintedFaces;
+  }
   run_Hexotic += in + Hexotic_In + out + Hexotic_Out;
   run_Hexotic += subdom + mode;
 #ifndef WIN32