From f788d6944373e3193153e92b5606df9f62c94555 Mon Sep 17 00:00:00 2001 From: aml Date: Fri, 18 Nov 2016 07:44:39 +0300 Subject: [PATCH] Correction of the result orientation. --- src/BRepOffset/BRepOffset_SimpleOffset.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/BRepOffset/BRepOffset_SimpleOffset.cxx b/src/BRepOffset/BRepOffset_SimpleOffset.cxx index 359ce2a10a..b1537e506d 100644 --- a/src/BRepOffset/BRepOffset_SimpleOffset.cxx +++ b/src/BRepOffset/BRepOffset_SimpleOffset.cxx @@ -235,6 +235,7 @@ void BRepOffset_SimpleOffset::FillFaceData(const TopoDS_Face& theFace) { NewFaceData aNFD; aNFD.myRevWires = Standard_False; + aNFD.myRevFace = Standard_False; aNFD.myTol = BRep_Tool::Tolerance(theFace); // Create offset surface. @@ -245,12 +246,9 @@ void BRepOffset_SimpleOffset::FillFaceData(const TopoDS_Face& theFace) // Take into account face orientation. Standard_Real aMult = 1.0; - aNFD.myRevFace = Standard_False; if (theFace.Orientation() == TopAbs_REVERSED) - { - aNFD.myRevFace = Standard_True; aMult = -1.0; - } + aNFD.myOffsetS = new Geom_OffsetSurface(aS, aMult * myOffsetValue, Standard_True); aNFD.myL = TopLoc_Location(); // Null transformation. -- 2.39.5