From 238b9bc557ef6f3dd418d660bdd67a9d706bada2 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 23 Jul 2012 10:44:44 +0000 Subject: [PATCH] class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm): ... + def SetQuadAllowed(self, toAllow=True): --- src/NETGENPlugin/NETGENPluginDC.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2