Salome HOME
trying to fix selection mecanism in OCC Viewer: Selection is OK, but broken after...
[modules/hydro.git] / 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)