Salome HOME
Merge tag 'V8_3_0a2' into ngr/python3_dev
[modules/smesh.git] / src / Tools / blocFissure / gmu / mailleAretesEtJonction.py
index bd070af8e5902a723daa0f5dfd6bc6db3462442f..6c249374059d8edd607f8118d7cf7d642595ce94 100644 (file)
@@ -2,12 +2,13 @@
 
 import logging
 
-from geomsmesh import geompy
-from geomsmesh import smesh
+from .geomsmesh import geompy
+from .geomsmesh import smesh
+import SMESH
 
-from putName import putName
+from .putName import putName
   
-def mailleAretesEtJonction(internalBoundary, aretesVivesCoupees, dmoyen):
+def mailleAretesEtJonction(internalBoundary, aretesVivesCoupees, lgAretesVives):
   """
   edges de bord, faces défaut à respecter
   """
@@ -30,11 +31,12 @@ def mailleAretesEtJonction(internalBoundary, aretesVivesCoupees, dmoyen):
 
   # --- maillage des éventuelles arêtes vives entre faces reconstruites
   
+  grpAretesVives = None
   if len(aretesVivesCoupees) > 0:
     aretesVivesC = geompy.MakeCompound(aretesVivesCoupees)
     meshAretesVives = smesh.Mesh(aretesVivesC)
     algo1d = meshAretesVives.Segment()
-    hypo1d = algo1d.LocalLength(dmoyen,[],1e-07)
+    hypo1d = algo1d.LocalLength(lgAretesVives,[],1e-07)
     putName(algo1d.GetSubMesh(), "aretesVives")
     putName(algo1d, "algo1d_aretesVives")
     putName(hypo1d, "hypo1d_aretesVives")