]> OCCT Git - occt-copy.git/commitdiff
Small modification
authorjgv <jgv@opencascade.com>
Fri, 13 Feb 2015 12:55:21 +0000 (15:55 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 13 Feb 2015 12:55:21 +0000 (15:55 +0300)
src/BRepFill/BRepFill_OffsetWire.cxx

index 21f5585eb34ebc7180e71e34739c9cdd2eaa4204..c8d81b284e9ae0ef41b2361eff68459bf565f6e2 100755 (executable)
@@ -278,19 +278,18 @@ static Standard_Boolean KPartCircle
       IsOpenResult)
   {
     Standard_Real anOffset = myOffset;
+    if (E.Orientation() == TopAbs_REVERSED) anOffset *= -1;
     
     Handle(Geom2d_Curve) aPCurve = BRep_Tool::CurveOnSurface(E, mySpine, f, l);
     Handle(Geom2dAdaptor_HCurve) AHC = new Geom2dAdaptor_HCurve(aPCurve, f, l);
     Handle(Geom2d_Curve) OC;
     if (AHC->GetType() == GeomAbs_Line)
     {
-      if (E.Orientation() == TopAbs_REVERSED) anOffset *= -1;
       Adaptor3d_OffsetCurve Off(AHC,anOffset);
       OC = new Geom2d_Line(Off.Line());
     }
     else if (AHC->GetType() == GeomAbs_Circle)
     {
-      if (E.Orientation() == TopAbs_FORWARD) anOffset *= -1;
       gp_Circ2d theCirc = AHC->Circle();
       if (anOffset > 0. || Abs(anOffset) < theCirc.Radius())
         OC = new Geom2d_Circle (theCirc.Position(), theCirc.Radius() + anOffset);
@@ -302,7 +301,6 @@ static Standard_Boolean KPartCircle
     }
     else
     {
-      if (E.Orientation() == TopAbs_REVERSED) anOffset *= -1;
       Handle(Geom2d_TrimmedCurve) G2dT = new Geom2d_TrimmedCurve(aPCurve, f, l);
       OC = new Geom2d_OffsetCurve( G2dT, anOffset);
     }