]> OCCT Git - occt-copy.git/commitdiff
Correction of the result orientation.
authoraml <aml@opencascade.com>
Fri, 18 Nov 2016 04:44:39 +0000 (07:44 +0300)
committeraml <aml@opencascade.com>
Fri, 18 Nov 2016 04:44:39 +0000 (07:44 +0300)
src/BRepOffset/BRepOffset_SimpleOffset.cxx

index 359ce2a10a9d670527113e6730bfff3b3345661c..b1537e506d5cc2b1e1d7c840a2e0f646ad67c2d1 100644 (file)
@@ -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.