NPAL18076: EDF617: Regression smesh.py Only the 1st netgen parameters is added/used.

This commit is contained in:
jfa 2007-11-29 13:01:07 +00:00
parent f09f98d9c2
commit 92cba8e476

View File

@ -805,22 +805,27 @@ class Mesh_Triangle(Mesh_Algorithm):
# #
# Only for algoType == NETGEN # Only for algoType == NETGEN
def SetMaxSize(self, theSize): def SetMaxSize(self, theSize):
if self.params == 0 and self.Parameters(): if self.params == 0:
self.Parameters()
if self.params is not None:
self.params.SetMaxSize(theSize) self.params.SetMaxSize(theSize)
## Set SecondOrder flag ## Set SecondOrder flag
# #
# Only for algoType == NETGEN # Only for algoType == NETGEN
def SetSecondOrder(self, theVal): def SetSecondOrder(self, theVal):
if self.params == 0 and self.Parameters(): if self.params == 0:
self.Parameters()
if self.params is not None:
self.params.SetSecondOrder(theVal) self.params.SetSecondOrder(theVal)
return
## Set Optimize flag ## Set Optimize flag
# #
# Only for algoType == NETGEN # Only for algoType == NETGEN
def SetOptimize(self, theVal): def SetOptimize(self, theVal):
if self.params == 0 and self.Parameters(): if self.params == 0:
self.Parameters()
if self.params is not None:
self.params.SetOptimize(theVal) self.params.SetOptimize(theVal)
## Set Fineness ## Set Fineness
@ -829,33 +834,41 @@ class Mesh_Triangle(Mesh_Algorithm):
# #
# Only for algoType == NETGEN # Only for algoType == NETGEN
def SetFineness(self, theFineness): def SetFineness(self, theFineness):
if self.params == 0 and self.Parameters(): if self.params == 0:
self.Parameters()
if self.params is not None:
self.params.SetFineness(theFineness) self.params.SetFineness(theFineness)
## Set GrowthRate ## Set GrowthRate
# #
# Only for algoType == NETGEN # Only for algoType == NETGEN
def SetGrowthRate(self, theRate): def SetGrowthRate(self, theRate):
if self.params == 0 and self.Parameters(): if self.params == 0:
self.Parameters()
if self.params is not None:
self.params.SetGrowthRate(theRate) self.params.SetGrowthRate(theRate)
## Set NbSegPerEdge ## Set NbSegPerEdge
# #
# Only for algoType == NETGEN # Only for algoType == NETGEN
def SetNbSegPerEdge(self, theVal): def SetNbSegPerEdge(self, theVal):
if self.params == 0 and self.Parameters(): if self.params == 0:
self.Parameters()
if self.params is not None:
self.params.SetNbSegPerEdge(theVal) self.params.SetNbSegPerEdge(theVal)
## Set NbSegPerRadius ## Set NbSegPerRadius
# #
# Only for algoType == NETGEN # Only for algoType == NETGEN
def SetNbSegPerRadius(self, theVal): def SetNbSegPerRadius(self, theVal):
if self.params == 0 and self.Parameters(): if self.params == 0:
self.Parameters()
if self.params is not None:
self.params.SetNbSegPerRadius(theVal) self.params.SetNbSegPerRadius(theVal)
pass pass
# Public class: Mesh_Quadrangle # Public class: Mesh_Quadrangle
# ----------------------------- # -----------------------------