Salome HOME
spns #19079: Top-ii-vol integration in SMESH
[modules/smesh.git] / src / Tools / TopIIVolMeshPlug / TopIIVolMeshPlugin.py
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2013-2020  EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 # if you already have plugins defined in a salome_plugins.py file, add this file at the end.
22 # if not, copy this file as ${HOME}/Plugins/smesh_plugins.py or ${APPLI}/Plugins/smesh_plugins.py
23
24 def TopIIVolMeshLct(context):
25   # get context study, salomeGui
26   study = context.study
27   sg = context.sg
28
29   import os
30   import subprocess
31   import tempfile
32   from qtsalome import QFileDialog, QMessageBox
33
34   import TopIIVolMeshPluginDialog
35   window = TopIIVolMeshPluginDialog.getInstance()
36   window.show()