add MMG plugin

This commit is contained in:
Afeef 2024-07-05 11:24:15 +02:00 committed by mbs
parent 21e8f82e00
commit 446795b1c1

View File

@ -61,6 +61,15 @@ except Exception as e:
salome_pluginsmanager.logger.info('ERROR: MGCleaner plug-in is unavailable: {}'.format(e)) salome_pluginsmanager.logger.info('ERROR: MGCleaner plug-in is unavailable: {}'.format(e))
pass pass
try:
from mmgplugin.mmgPlug_plugin import Mmg
salome_pluginsmanager.AddFunction('ReMesh with MMG',
'Run MMG',
Mmg)
except Exception as e:
salome_pluginsmanager.logger.info('ERROR: MMG plug-in is unavailable: {}'.format(e))
pass
try: try:
from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg
salome_pluginsmanager.AddFunction('Meshed Pipe with a crack (blocFissure plugin)', salome_pluginsmanager.AddFunction('Meshed Pipe with a crack (blocFissure plugin)',
@ -88,7 +97,7 @@ try:
'Add a crack in a mesh with Zcracks plug-in', 'Add a crack in a mesh with Zcracks plug-in',
ZcracksLct) ZcracksLct)
except Exception as e: except Exception as e:
#print 'probleme zcracks' #print 'problem zcracks'
salome_pluginsmanager.logger.info('ERROR: Zcrack plug-in is unavailable: {}'.format(e)) salome_pluginsmanager.logger.info('ERROR: Zcrack plug-in is unavailable: {}'.format(e))
pass pass
@ -99,6 +108,5 @@ try:
'run topological volumic mesher', 'run topological volumic mesher',
TopIIVolMeshLct) TopIIVolMeshLct)
except Exception as e: except Exception as e:
#print 'probleme zcracks'
salome_pluginsmanager.logger.info('ERROR: TopIIVolMesh plug-in is unavailable: {}'.format(e)) salome_pluginsmanager.logger.info('ERROR: TopIIVolMesh plug-in is unavailable: {}'.format(e))
pass pass