Salome HOME
Copyright update 2020
[modules/smesh.git] / src / Tools / blocFissure / gmu / partitionneFissureParPipe.py
index 9ad26b854e009f4dd74c80ce67afe75598b9e347..d0a4e4f406207cba7ebb6e5278e305339034975b 100644 (file)
@@ -1,15 +1,33 @@
 # -*- coding: utf-8 -*-
+# Copyright (C) 2014-2020  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, 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 http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
 
 import math
 import logging
-from geomsmesh import geompy
-from geomsmesh import geomPublish
-from geomsmesh import geomPublishInFather
-import initLog
+from .geomsmesh import geompy
+from .geomsmesh import geomPublish
+from .geomsmesh import geomPublishInFather
+from . import initLog
+from .findWireEndVertices import findWireEndVertices
+from .prolongeWire import prolongeWire
 import traceback
-from findWireEndVertices import findWireEndVertices
-from prolongeWire import prolongeWire
-from fissError import fissError
+from .fissError import fissError
 
 def partitionneFissureParPipe(shapesFissure, elementsDefaut, rayonPipe):
   """
@@ -39,7 +57,7 @@ def partitionneFissureParPipe(shapesFissure, elementsDefaut, rayonPipe):
     pipeFiss = geompy.MakePipe(cercle, fondFissProlonge)
   except:
     texte = "génération du pipe le long de la ligne de fond de fissure prolongée impossible. "
-    texte += "Cause éventuelle : la ligne s'autointersecte lorsqu'on la prolonge."
+    texte += "Cause possible : la ligne s'autointersecte lorsqu'on la prolonge."
     raise fissError(traceback.extract_stack(),texte)
   geomPublish(initLog.debug, pipeFiss, 'pipeFiss')
   partFissPipe = geompy.MakePartition([shapeDefaut, pipeFiss], [], [], [], geompy.ShapeType["FACE"], 0, [], 1)