From: eap Date: Mon, 23 Jul 2012 10:44:44 +0000 (+0000) Subject: class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm): X-Git-Tag: V6_6_0a1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=238b9bc557ef6f3dd418d660bdd67a9d706bada2;p=plugins%2Fnetgenplugin.git class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm): ... + def SetQuadAllowed(self, toAllow=True): --- diff --git a/src/NETGENPlugin/NETGENPluginDC.py b/src/NETGENPlugin/NETGENPluginDC.py index f49ba75..9568df6 100644 --- a/src/NETGENPlugin/NETGENPluginDC.py +++ b/src/NETGENPlugin/NETGENPluginDC.py @@ -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