From 446795b1c1c1996d92936a3f47ab829881d1f31a Mon Sep 17 00:00:00 2001 From: Afeef Date: Fri, 5 Jul 2024 11:24:15 +0200 Subject: [PATCH] add MMG plugin --- src/Tools/smesh_plugins.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Tools/smesh_plugins.py b/src/Tools/smesh_plugins.py index bb94938ff..83db5cfcc 100644 --- a/src/Tools/smesh_plugins.py +++ b/src/Tools/smesh_plugins.py @@ -61,6 +61,15 @@ except Exception as e: salome_pluginsmanager.logger.info('ERROR: MGCleaner plug-in is unavailable: {}'.format(e)) 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: from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg 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', ZcracksLct) except Exception as e: - #print 'probleme zcracks' + #print 'problem zcracks' salome_pluginsmanager.logger.info('ERROR: Zcrack plug-in is unavailable: {}'.format(e)) pass @@ -99,6 +108,5 @@ try: 'run topological volumic mesher', TopIIVolMeshLct) except Exception as e: - #print 'probleme zcracks' salome_pluginsmanager.logger.info('ERROR: TopIIVolMesh plug-in is unavailable: {}'.format(e)) pass -- 2.39.2