X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Offset.cpp;h=f39936af222ffaebd34413d969695530d4ea68b1;hb=9afbc5fb015e5ff91689e1ef3f4da286347fbda5;hp=bcd5ec60d78e9ff8df924202ed8bad82a82dc953;hpb=06e7f5859095193fc7f498bd89a7d28009794f53;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp index bcd5ec60d..f39936af2 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp @@ -65,7 +65,8 @@ void GeomAlgoAPI_Offset::generated(const GeomShapePtr theOldShape, GeomAlgoAPI_Offset::GeomAlgoAPI_Offset(const GeomPlanePtr& thePlane, const GeomShapePtr& theEdgeOrWire, const double theOffsetValue, - const GeomAlgoAPI_OffsetJoint theJoint) + const GeomAlgoAPI_OffsetJoint theJoint, + const bool theIsApprox) { // 1. Make wire from edge, if need TopoDS_Wire aWire; @@ -101,6 +102,7 @@ GeomAlgoAPI_Offset::GeomAlgoAPI_Offset(const GeomPlanePtr& thePlane, Standard_Boolean isOpenResult = !aWire.Closed(); aParal->Init(aFace, aJoin, isOpenResult); + aParal->SetApprox(theIsApprox); aParal->Perform(theOffsetValue, 0.); if (aParal->IsDone()) { TopoDS_Shape anOffset = aParal->Shape();