From: Paul RASCLE Date: Mon, 31 Aug 2020 09:21:27 +0000 (+0200) Subject: fix fitShapesPointsToMeshEdges with double points, no split X-Git-Tag: SH_V2_2_0~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d3919797a21987e0e481c62695634a5d637e0ce3;p=modules%2Fhydro.git fix fitShapesPointsToMeshEdges with double points, no split --- diff --git a/src/HYDROTools/shapesGroups.py b/src/HYDROTools/shapesGroups.py index 8bcdd4d0..f4673d80 100644 --- a/src/HYDROTools/shapesGroups.py +++ b/src/HYDROTools/shapesGroups.py @@ -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)