Salome HOME
fixed a small problem in the extrusion direction determination
authorrnc <rnc@opencascade.com>
Fri, 2 Mar 2012 13:03:21 +0000 (13:03 +0000)
committerrnc <rnc@opencascade.com>
Fri, 2 Mar 2012 13:03:21 +0000 (13:03 +0000)
src/GEOMImpl/GEOMImpl_PrismDriver.cxx

index 52e9ac1c666bcc68131d49f36b23e6dc9ebf35a4..eabed5f259e8f950e96e86e208ad4b465187b040 100644 (file)
@@ -277,21 +277,20 @@ Standard_Integer GEOMImpl_PrismDriver::Execute(TFunction_Logbook& log) const
           else
             aFaceBase=aTempFace;
         }
-      }
-      
-      // Invert height and angle if the operation is an extruded cut
-      bool invert = !isProtrusion; 
-      
-      // If the face has a reverse orientation invert for extruded boss operations
-      if(aFaceBase.Orientation() == TopAbs_REVERSED)
-        invert = isProtrusion;
-
-      if(invert)
-      {
-        anAngle = -anAngle;  // Invert angle and height
-        aHeight = -aHeight;
-      }
+      } 
+    }
+    
+    // Invert height and angle if the operation is an extruded cut
+    bool invert = !isProtrusion; 
     
+    // If the face has a reversed orientation invert for extruded boss operations
+    if(aFaceBase.Orientation() == TopAbs_REVERSED)
+      invert = isProtrusion;
+
+    if(invert)
+    {
+      anAngle = -anAngle;  // Invert angle and height
+      aHeight = -aHeight;
     }
     
     BRepFeat_MakeDPrism thePrism(anInitShape, aFaceBase, TopoDS_Face(),