def PrepareLigneCommande(self):
"""
- #use doc examples of mg-cleaner:
- ls -al /data/tmplgls/salome/prerequis/install/COMMON_64/MeshGems-1.0/bin
- source /data/tmplgls/salome/prerequis/install/LICENSE/dlim8.var.sh
- export PATH=/data/tmplgls/salome/prerequis/install/COMMON_64/MeshGems-1.0/bin/Linux_64:$PATH
- cp -r /data/tmplgls/salome/prerequis/install/COMMON_64/MeshGems-1.0/examples .
- cd examples
- mg-cleaner.exe --help
- mg-cleaner.exe --in case7.mesh --out case7-test.mesh --check
- mg-cleaner.exe case7.mesh case7-fix.mesh --fix
- mg-cleaner.exe --in Porsche.mesh --out Porsche-test.mesh --check
- mg-cleaner.exe --in Porsche.mesh --out Porschefix.mesh --fix
- mg-cleaner.exe --in Porsche.mesh --out PorscheNewfix.mesh --fix --resolution_length 0.03
"""
#self.commande="mg-cleaner.exe --in " + self.fichierIn + " --out " + self.fichierOut + " --fix2pass"
self.commande+=" --overlap_angle " + str(self.SP_OverlapAngle.value())
import SMeshHelper
- key = SMeshHelper.GetMGLicenseKey( self.self.fichierIn )
+ key = SMeshHelper.GetMGLicenseKey( self.fichierIn )
self.commande+=' --key ' + key
if verbose: print(("INFO: MGCCleaner command:\n %s" % self.commande))
verbose = True
-force = os.getenv("FORCE_DISTENE_LICENSE_FILE")
-if force != None:
- os.environ["DISTENE_LICENSE_FILE"] = force
- os.environ["DLIM8VAR"] = "NOTHING"
-
class MGCleanerMonViewText(Ui_ViewExe, QDialog):
"""
Classe permettant la visualisation de texte
import tempfile
from qtsalome import QFileDialog, QMessageBox
- #prior test to avoid unnecessary user GUI work with ending crash
- try :
- os.environ['DISTENE_LICENSE_FILE']
- except:
- QMessageBox.warning(None, "Products", """\
-Distene's product MeshGem Cleaner is not installed.
-required environment variable:
-DISTENE_LICENSE_FILE='.../dlim8.var.sh'""")
- return
import MGCleanerMonPlugDialog
window = MGCleanerMonPlugDialog.getDialog()
window.show()
verbose = True
-force = os.getenv("FORCE_DISTENE_LICENSE_FILE")
-if force != None:
- os.environ["DISTENE_LICENSE_FILE"] = force
- os.environ["DLIM8VAR"] = "NOTHING"
-
class MonViewText(Ui_ViewExe, QDialog):
"""
Classe permettant la visualisation de texte
import tempfile
from qtsalome import QFileDialog, QMessageBox
- #prior test to avoid unnecessary user GUI work with ending crash
- try :
- os.environ['DISTENE_LICENSE_FILE']
- except:
- QMessageBox.warning(None,"Products","""\
-Distene's product MeshGem SurfOpt is not installed.
-required environment variable:
-DISTENE_LICENSE_FILE='.../dlim8.var.sh'""")
- return
import monYamsPlugDialog
window = monYamsPlugDialog.getDialog()
window.show()