Salome HOME
class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm):
authoreap <eap@opencascade.com>
Mon, 23 Jul 2012 10:44:44 +0000 (10:44 +0000)
committereap <eap@opencascade.com>
Mon, 23 Jul 2012 10:44:44 +0000 (10:44 +0000)
...
+    def SetQuadAllowed(self, toAllow=True):

src/NETGENPlugin/NETGENPluginDC.py

index f49ba75be7b6134b61f8e401ff71348f381d8629..9568df6f359e8c289e066f3b5e30bcc6d0da66a5 100644 (file)
@@ -211,6 +211,11 @@ class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm):
     def __init__(self, mesh, geom=0):
         NETGEN_Algorithm.__init__(self, mesh, geom)
 
+    ## Sets QuadAllowed flag.
+    def SetQuadAllowed(self, toAllow=True):
+        if self.Parameters():
+            self.params.SetQuadAllowed(toAllow)
+
     ## Defines "MaxElementArea" hypothesis basing on the definition of the maximum area of each triangle
     #  @param area for the maximum area of each triangle
     #  @param UseExisting if ==true - searches for an  existing hypothesis created with the