from salome.smesh.smesh_algorithm import Mesh_Algorithm
+LIBRARY = "libBLSURFEngine.so"
+
# Topology treatment way of MG-CADSurf
FromCAD, PreProcess, PreProcessPlus, PreCAD = 0,1,2,3
Mesh_Algorithm.__init__(self)
if noBLSURFPlugin:
print "Warning: BLSURFPlugin module unavailable"
- self.Create(mesh, geom, BLSURF, "libBLSURFEngine.so")
+ self.Create(mesh, geom, BLSURF, LIBRARY)
self.params=None
self.geompyD = mesh.geompyD
#self.SetPhysicalMesh() - PAL19680
self.SetTopology(PreCAD)
self.Parameters().SetPreCADOptionValue(optionName,optionValue)
pass
+
+ ## Adds custom advanced option value.
+ # @param optionName custom advanced option name
+ # @param level custom advanced option value
+ def AddOption(self, optionName, level):
+ self.Parameters().AddOption(optionName,level)
+ pass
+
+ ## Adds custom advanced PreCAD option value.
+ # @param optionName custom name of the option
+ # @param optionValue value of the option
+ def AddPreCADOption(self, optionName, optionValue):
+ if self.Parameters().GetTopology() != PreCAD:
+ self.SetTopology(PreCAD)
+ self.Parameters().AddPreCADOption(optionName,optionValue)
+ pass
## Sets GMF file for export at computation
# @param fileName GMF file name
def Parameters(self):
if not self.params:
self.params = self.Hypothesis("MG-CADSurf Parameters", [],
- "libBLSURFEngine.so", UseExisting=0)
+ LIBRARY, UseExisting=0)
pass
return self.params