X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Offset.cpp;h=dccf9bd131f4df22ed8ac3542869d74fea253cf8;hb=380f01e1fce1a012267d604a1190d04bf4659447;hp=4b0bb4031f51d42b85e808be836b9e478a3e5956;hpb=29726bcc1b3ff76fe8ce69be9db0191b59975e11;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp index 4b0bb4031..dccf9bd13 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2019 CEA/DEN, EDF R&D +// Copyright (C) 2019-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -92,7 +92,8 @@ GeomAlgoAPI_Offset::GeomAlgoAPI_Offset(const GeomPlanePtr& thePlane, setImpl(aParal); setBuilderType(OCCT_BRepBuilderAPI_MakeShape); - aParal->Init(aFace, GeomAbs_Arc, Standard_True); + Standard_Boolean isOpenResult = !aWire.Closed(); + aParal->Init(aFace, GeomAbs_Arc, isOpenResult); aParal->Perform(theOffsetValue, 0.); if (aParal->IsDone()) { TopoDS_Shape anOffset = aParal->Shape();