mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-26 01:37:55 +05:00
50 lines
1.6 KiB
Python
50 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Copyright (C) 2014-2024 EDF
|
|
#
|
|
# 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, or (at your option) any later version.
|
|
#
|
|
# 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 https://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
#
|
|
# Author : Konstantin Leontev (OpenCascade S.A.S)
|
|
|
|
import sys
|
|
|
|
from qtsalome import QApplication
|
|
|
|
from .subshapes_basedlg import SubShapesBaseDlg
|
|
import GEOM
|
|
|
|
class UnionEdgesDlg(SubShapesBaseDlg):
|
|
"""
|
|
Dialog for Union Edges plugin that unifies edges of selected face.
|
|
"""
|
|
def __init__(self, selection_level = GEOM.EDGE):
|
|
SubShapesBaseDlg.__init__(
|
|
self, 'Union Edges', 'union_edges_algo.py', False, selection_level, 1)
|
|
|
|
|
|
# For testing run as a module from geomrepairadv parent directory in
|
|
# Salome INSTALL, because the dialog needs a generated Ui_BaseDlg class
|
|
# that we don't have in the SOURCE.
|
|
# Example:
|
|
# $ python -m geomrepairadv.union_edges
|
|
if __name__ == '__main__':
|
|
app = QApplication(sys.argv)
|
|
|
|
dlg = UnionEdgesDlg(None)
|
|
dlg.show()
|
|
|
|
sys.exit(app.exec_())
|