Salome HOME
new combo for element generation etc...
[plugins/hybridplugin.git] / src / HYBRIDPlugin / HYBRIDPluginBuilder.py
index 4c4b9b7d8c94057a411e21865148a621a55eceaa..4bf9d22cb9208ee8168b25a06e780fc7e187f613 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
@@ -38,6 +39,15 @@ None_Optimization, Light_Optimization, Medium_Optimization, Strong_Optimization
 # V4.1 (partialy redefines V3.1). Issue 0020574
 None_Optimization, Light_Optimization, Standard_Optimization, StandardPlus_Optimization, Strong_Optimization = 0,1,2,3,4
 
+# Collision Mode
+Decrease_Collision_Mode, Stop_Collision_Mode = 0,1
+
+# Boundary Layers growing inward or outward.
+Layer_Growth_Inward, Layer_Growth_Outward = 0,1
+
+# Mesh with element type Tetra Dominant or hexa Dominant in the remaining volume (outside layers).
+Generation_Tetra_Dominant, Generation_Hexa_Dominant = 0,1
+
 #----------------------------
 # Mesh algo type identifiers
 #----------------------------
@@ -80,6 +90,8 @@ class HYBRID_Algorithm(Mesh_Algorithm):
             pass
         return self.params
 
+    """
+    obsolete
     ## To mesh "holes" in a solid or not. Default is to mesh.
     #  @param toMesh "mesh holes" flag value
     def SetToMeshHoles(self, toMesh):
@@ -119,6 +131,79 @@ class HYBRID_Algorithm(Mesh_Algorithm):
     def SetInitialMemory(self, MB):
         self.Parameters().SetInitialMemory(MB)
         pass
+    """
+
+    ## Set Collision Mode:
+    #  @param mode Collision Mode, one of the following values
+    #  - Decrease_Collision_Mode
+    #  - Stop_Collision_Mode
+    #  .
+    #  Default is Decrease_Collision_Mode
+    def SetCollisionMode(self, mode):
+        self.Parameters().SetCollisionMode(mode)
+        pass
+
+    ## To mesh Boundary Layers growing inward or outward.
+    #  @param mode, one of the following values
+    #  - Layer_Growth_Inward
+    #  - Layer_Growth_Outward
+    #  .
+    #  Default is Layer_Growth_Inward
+    def SetBoundaryLayersGrowth(self, mode):
+        self.Parameters().SetBoundaryLayersGrowth(mode)
+        pass
+
+    ## To mesh with element type Tetra Dominant or hexa Dominant in the remaining volume (outside layers).
+    #  @param mode, one of the following values
+    #  - Generation_Tetra_Dominant
+    #  - Generation_Hexa_Dominant
+    #  .
+    # Default is Generation_Tetra_Dominant
+    def SetElementGeneration(self, mode);
+        self.Parameters().SetElementGeneration(mode)
+        pass
+
+    ## To mesh adding extra normals at opening ridges and corners.
+    # Default is no.
+    # @param addMultinormals boolean value
+    def SetAddMultinormals(self, addMultinormals);
+        self.Parameters().SetAddMultinormals(addMultinormals)
+        pass
+
+    ## To mesh smoothing normals at closed ridges and corners.
+    # Default is no.
+    # @param smoothNormals boolean value
+    def SetSmoothNormals(self, smoothNormals);
+        self.Parameters().SetSmoothNormals(smoothNormals)
+        pass
+
+    ## To set height of the first layer.
+    # Default is 0.0
+    # @param heightFirstLayer double value
+    def SetHeightFirstLayer(self, heightFirstLayer);
+        self.Parameters().SetHeightFirstLayer(heightFirstLayer)
+        pass
+
+    ## To set boundary layers coefficient of geometric progression.
+    # Default is 1.0
+    # @param boundaryLayersProgression double value
+    def SetBoundaryLayersProgression(self, boundaryLayersProgression);
+        self.Parameters().SetBoundaryLayersProgression(boundaryLayersProgression)
+        pass
+
+    ## To set multinormals angle threshold at opening ridges.
+    # Default is 30.0
+    # @param multinormalsAngle double value
+    def SetMultinormalsAngle(self, multinormalsAngle);
+        self.Parameters().SetMultinormalsAngle(multinormalsAngle)
+        pass
+
+    ## To set number of boundary layers.
+    # Default is 1
+    # @param nbOfBoundaryLayers int value
+    def SetNbOfBoundaryLayers(self, nbOfBoundaryLayers);
+        self.Parameters().SetNbOfBoundaryLayers(nbOfBoundaryLayers)
+        pass
 
     ## Set path to working directory.
     #  @param path working directory