]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
fix fitShapesPointsToMeshEdges with double points, no split
authorPaul RASCLE <paul.rascle@openfields.fr>
Mon, 31 Aug 2020 09:21:27 +0000 (11:21 +0200)
committerYOANN AUDOUIN <B61570@dsp0851742.postes.calibre.edf.fr>
Fri, 30 Oct 2020 16:06:23 +0000 (17:06 +0100)
src/HYDROTools/shapesGroups.py

index 8bcdd4d035ec35e1dd04c55f9c4ec38ff5cda7d2..f4673d800e977a5d1ee196980532d34b4b93be10 100644 (file)
@@ -340,6 +340,8 @@ def fitShapePointsToMesh(freeBorderShapefile, shapefileToAdjust, outputDirectory
                 chaincoords.append(sfta.points[i])
         for i in range(i1):
             chaincoords.append(sfta.points[i])
+        if discountLastSftaPoint:
+            chaincoords.append(fbs.points[ifb1]) # close shape when first point if superposed with last
         w.line([chaincoords])
         w.record(chainName)