]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Corrected for IPAL13224.
authorskl <skl@opencascade.com>
Tue, 29 Aug 2006 12:07:54 +0000 (12:07 +0000)
committerskl <skl@opencascade.com>
Tue, 29 Aug 2006 12:07:54 +0000 (12:07 +0000)
src/ShHealOper/ShHealOper_ChangeOrientation.cxx

index 0bd3c9780acf9bfec5d53678bf11b392fee8332b..92912fa858559be251f6fd5e4723c421d8810236 100644 (file)
@@ -55,8 +55,8 @@ void ShHealOper_ChangeOrientation::Init(const TopoDS_Shape& theShape)
 
 Standard_Boolean ShHealOper_ChangeOrientation::Perform()
 {
+  BRep_Builder B;
   if (myInitShape.ShapeType() == TopAbs_SHELL) {
-    BRep_Builder B;
     myResultShape = myInitShape.EmptyCopied();
     TopoDS_Iterator itr(myInitShape);
     while (itr.More()) {
@@ -65,7 +65,13 @@ Standard_Boolean ShHealOper_ChangeOrientation::Perform()
     }
   }
   else if (myInitShape.ShapeType() == TopAbs_FACE) {
-    myResultShape = myInitShape.Reversed();
+    myResultShape = myInitShape.EmptyCopied();
+    TopoDS_Iterator itr(myInitShape);
+    while (itr.More()) {
+      B.Add(myResultShape,itr.Value());
+      itr.Next();
+    }
+    myResultShape.Reverse();
   }
   else if (myInitShape.ShapeType() == TopAbs_WIRE) {
     myResultShape = myInitShape.Reversed();