include $(top_srcdir)/adm_local/unix/make_common_starter.am
SUBDIRS = MeshCut padder
+
+salomeplugins_PYTHON = \
+ smesh_plugins.py
MeshCut_LDFLAGS = $(MED3_LIBS) $(HDF5_LIBS)
-
+salomeplugins_PYTHON = \
+ meshcut_plugin.py
UIPY_FILES = MeshCutDialog.py
if SMESH_ENABLE_GUI
- dist_salomescript_SCRIPTS = meshcut_plugin.py
nodist_salomescript_SCRIPTS = $(UIPY_FILES)
endif
// cout << endl;
// Groupes de mailles
- MAILLAGE2->GM = MAILLAGE1->GM;
+ // MAILLAGE2->GM = MAILLAGE1->GM;
+ MAILLAGE2->GN.clear();
+ MAILLAGE2->GM.clear();
MAILLAGE2->GM[str_id_GMplus] = GMplus;
MAILLAGE2->GM[str_id_GMmoins] = GMmoins;
- MAILLAGE2->GN = MAILLAGE1->GN;
+ // MAILLAGE2->GN = MAILLAGE1->GN;
MAILLAGE2->eliminationMailles(TETRA4, cutTetras);
# if you already have plugins defined in a salome_plugins.py file, add this file at the end.
# if not, copy this file as ${HOME}/Plugins/smesh_plugins.py or ${APPLI}/Plugins/smesh_plugins.py
-import salome_pluginsmanager
-
def MeshCut(context):
# get context study, studyId, salomeGui
study = context.study
import os
import subprocess
import tempfile
+ from PyQt4 import QtCore
from PyQt4 import QtGui
from PyQt4.QtGui import QFileDialog
from PyQt4.QtGui import QMessageBox
pass
pass
pass
-
-# register the function in the plugin manager
-salome_pluginsmanager.AddFunction('MeshCut', 'Cut a tetrahedron mesh by a plane', MeshCut)
-
# plugins and created in the root installation directory.
#
salomeplugins_PYTHON = \
- smesh_plugins.py
+ spadderPlugin.py
#salomeplugins_DATA = \
# envPlugins.sh
+++ /dev/null
-# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2011 EDF R&D
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-# -* Makefile *-
-#
-# Author : Guillaume Boulant (EDF)
-#
-import salome_pluginsmanager
-
-
-def runSpadderPlugin(context):
- from salome.smesh.spadder.gui import plugindialog
- from salome.kernel.uiexception import UiException
- try:
- dialog=plugindialog.getDialog()
- except UiException, err:
- from PyQt4.QtGui import QMessageBox
- QMessageBox.critical(None,"An error occurs during PADDER configuration",
- err.getUIMessage())
- return
-
- dialog.update()
- dialog.show()
-
-salome_pluginsmanager.AddFunction('PADDER mesher',
- 'Create a mesh with PADDER',
- runSpadderPlugin)
-
--- /dev/null
+# -*- coding: iso-8859-1 -*-
+# Copyright (C) 2011 EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# -* Makefile *-
+#
+# Author : Guillaume Boulant (EDF)
+#
+
+def runSpadderPlugin(context):
+ from salome.smesh.spadder.gui import plugindialog
+ from salome.kernel.uiexception import UiException
+ try:
+ dialog=plugindialog.getDialog()
+ except UiException, err:
+ from PyQt4.QtGui import QMessageBox
+ QMessageBox.critical(None,"An error occurs during PADDER configuration",
+ err.getUIMessage())
+ return
+
+ dialog.update()
+ dialog.show()
+
--- /dev/null
+# -*- coding: iso-8859-1 -*-
+# Copyright (C) 2011 EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# -* Makefile *-
+#
+# Author : Guillaume Boulant (EDF)
+#
+import salome_pluginsmanager
+
+from spadderPlugin import runSpadderPlugin
+from meshcut_plugin import MeshCut
+
+salome_pluginsmanager.AddFunction('PADDER mesher',
+ 'Create a mesh with PADDER',
+ runSpadderPlugin)
+
+salome_pluginsmanager.AddFunction('MeshCut',
+ 'Cut a tetrahedron mesh by a plane',
+ MeshCut)