]> OCCT Git - occt-copy.git/commitdiff
Application of EnsureToleranceRule to ShapeFix_Shape was fixed.
authorabk <abk@opencascade.com>
Wed, 26 Dec 2012 16:21:16 +0000 (20:21 +0400)
committerabk <abk@opencascade.com>
Fri, 1 Mar 2013 12:12:28 +0000 (16:12 +0400)
src/ShapeFix/ShapeFix_Shape.cxx

index 71e40f9fdb279a96b8452331352f5076e49bc136..cb2cfeab6f85649b418328fb9f0a42992d5fb84f 100755 (executable)
@@ -103,10 +103,7 @@ void ShapeFix_Shape::Init(const TopoDS_Shape& shape)
 Standard_Boolean ShapeFix_Shape::Perform(const Handle(Message_ProgressIndicator)& theProgress)
 {
   Standard_Boolean aR = PerformR(theProgress);
-  if (aR)
-  {
-    BRepBuilderAPI_MakeShape::EnsureToleranceRule(myResult);
-  }
+  BRepBuilderAPI_MakeShape::EnsureToleranceRule(myResult);
   return aR;
 }
 
@@ -173,7 +170,7 @@ Standard_Boolean ShapeFix_Shape::PerformR(const Handle(Message_ProgressIndicator
     for ( TopoDS_Iterator anIter(S); anIter.More() && aPSentry.More(); anIter.Next(), aPSentry.Next() )
     {
       myShape = anIter.Value();
-      if ( Perform(theProgress) )
+      if ( PerformR(theProgress) )
         status = Standard_True;
     }
     if ( !aPSentry.More() )