mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 06:20:37 +05:00
Merge remote branch 'origin/V7_dev' into V8_0_0_BR
This commit is contained in:
commit
0aa1e7419a
@ -21,43 +21,61 @@
|
|||||||
#
|
#
|
||||||
import salome_pluginsmanager
|
import salome_pluginsmanager
|
||||||
|
|
||||||
from spadderPlugin import runSpadderPlugin
|
try:
|
||||||
from meshcut_plugin import MeshCut
|
from spadderPlugin import runSpadderPlugin
|
||||||
from yamsplug_plugin import YamsLct
|
salome_pluginsmanager.AddFunction('PADDER mesher',
|
||||||
from MGCleanerplug_plugin import MGCleanerLct
|
'Create a mesh with PADDER',
|
||||||
from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg
|
runSpadderPlugin)
|
||||||
|
except:
|
||||||
|
salome_pluginsmanager.logger.info('ERROR: PADDER mesher plug-in is unavailable')
|
||||||
|
pass
|
||||||
|
|
||||||
salome_pluginsmanager.AddFunction('PADDER mesher',
|
try:
|
||||||
'Create a mesh with PADDER',
|
from meshcut_plugin import MeshCut
|
||||||
runSpadderPlugin)
|
salome_pluginsmanager.AddFunction('MeshCut',
|
||||||
|
'Cut a tetrahedron mesh by a plane',
|
||||||
|
MeshCut)
|
||||||
|
|
||||||
salome_pluginsmanager.AddFunction('MeshCut',
|
except:
|
||||||
'Cut a tetrahedron mesh by a plane',
|
salome_pluginsmanager.logger.info('ERROR: MeshCut plug-in is unavailable')
|
||||||
MeshCut)
|
pass
|
||||||
|
|
||||||
salome_pluginsmanager.AddFunction('ReMesh with MGSurfOpt ( formerly Yams )',
|
try:
|
||||||
'Run Yams',
|
from yamsplug_plugin import YamsLct
|
||||||
YamsLct)
|
salome_pluginsmanager.AddFunction('ReMesh with MGSurfOpt ( formerly Yams )',
|
||||||
|
'Run Yams',
|
||||||
|
YamsLct)
|
||||||
|
except:
|
||||||
|
salome_pluginsmanager.logger.info('ERROR: MGSurfOpt (Yams) plug-in is unavailable')
|
||||||
|
pass
|
||||||
|
|
||||||
salome_pluginsmanager.AddFunction('ReMesh with MGCleaner',
|
try:
|
||||||
'Run MGCleaner',
|
from MGCleanerplug_plugin import MGCleanerLct
|
||||||
MGCleanerLct)
|
salome_pluginsmanager.AddFunction('ReMesh with MGCleaner',
|
||||||
|
'Run MGCleaner',
|
||||||
|
MGCleanerLct)
|
||||||
|
except:
|
||||||
|
salome_pluginsmanager.logger.info('ERROR: MGCleaner plug-in is unavailable')
|
||||||
|
pass
|
||||||
|
|
||||||
salome_pluginsmanager.AddFunction('Meshed Pipe with a crack',
|
try:
|
||||||
'Create a mesh with blocFissure tool',
|
from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg
|
||||||
fissureCoudeDlg)
|
salome_pluginsmanager.AddFunction('Meshed Pipe with a crack',
|
||||||
|
'Create a mesh with blocFissure tool',
|
||||||
|
fissureCoudeDlg)
|
||||||
|
except:
|
||||||
|
salome_pluginsmanager.logger.info('ERROR: Meshed Pipe with a crack plug-in is unavailable')
|
||||||
|
pass
|
||||||
|
|
||||||
# ZCracks plugin requires the module EFICAS to be installed
|
# ZCracks plugin requires the module EFICAS to be installed
|
||||||
# thus it is first tested if this module is available before
|
# thus it is first tested if this module is available before
|
||||||
# adding the plugin to salome_pluginsmanager
|
# adding the plugin to salome_pluginsmanager
|
||||||
enable_zcracks = True
|
|
||||||
try:
|
try:
|
||||||
import eficasSalome
|
import eficasSalome
|
||||||
except:
|
|
||||||
enable_zcracks = False
|
|
||||||
|
|
||||||
if enable_zcracks:
|
|
||||||
from zcracks_plugin import ZcracksLct
|
from zcracks_plugin import ZcracksLct
|
||||||
salome_pluginsmanager.AddFunction('Run Zcrack',
|
salome_pluginsmanager.AddFunction('Run Zcrack',
|
||||||
'Run Zcrack',
|
'Run Zcrack',
|
||||||
ZcracksLct)
|
ZcracksLct)
|
||||||
|
except:
|
||||||
|
salome_pluginsmanager.logger.info('ERROR: Zcrack plug-in is unavailable')
|
||||||
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user