]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Python function mergePolylines
authorPaul RASCLE <paul.rascle@openfields.fr>
Thu, 27 Aug 2020 14:14:30 +0000 (16:14 +0200)
committerYOANN AUDOUIN <B61570@dsp0851742.postes.calibre.edf.fr>
Fri, 30 Oct 2020 16:06:22 +0000 (17:06 +0100)
src/HYDROTools/hydroGeoMeshUtils.py

index 18df35eb4bc094f624c8fa8943615128c292c74c..990dd9c477e20ec1ea9253e89267316953d5ea99 100644 (file)
@@ -74,3 +74,11 @@ def createImmersibleZone(document, imzName, polyLine, bathy, isImmersible, displ
     imz.SetIsSubmersible(isImmersible)
     imz.Update()
     return imz
+
+def mergePolylines(document, polyName, polyLines, isConnectedBySegment = False, tolerance = 1.E-3):
+    """
+    """
+    op=HYDROData_PolylineOperator()
+    op.Merge(document, polyName, polyLines, isConnectedBySegment, tolerance)
+    shape = document.FindObjectByName(polyName)
+    return shape