OCC22322 Improvement extrema Additional integration
authorABV <>
Fri, 20 May 2011 13:40:08 +0000 (13:40 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:29:02 +0000 (19:29 +0400)
src/BRepExtrema/BRepExtrema_DistShapeShape.cxx

index 90ac2bf..2cb0129 100755 (executable)
@@ -212,7 +212,7 @@ Standard_Boolean BRepExtrema_DistShapeShape::Perform()
     BRepClass3d_SolidClassifier Classi(myShape1);
     const Standard_Integer nbv2 = myMapV2.Extent();
     Standard_Integer nbv1 = 0;
-    do
+    while ( (nbv1<nbv2) && (!myInnerSol) )
     {
       nbv1++;
       V = TopoDS::Vertex(myMapV2(nbv1));
@@ -228,7 +228,6 @@ Standard_Boolean BRepExtrema_DistShapeShape::Perform()
         mySolutionsShape2.Append(Sol);
       }  
     }
-    while ( (nbv1<nbv2) && (!myInnerSol) );
   }
   
   const TopAbs_ShapeEnum Type2 = myShape2.ShapeType();
@@ -237,7 +236,7 @@ Standard_Boolean BRepExtrema_DistShapeShape::Perform()
     BRepClass3d_SolidClassifier Classi(myShape2);
     const Standard_Integer nbv1 = myMapV1.Extent();
     Standard_Integer nbv2 = 0;
-    do
+    while ( (nbv2<nbv1) && (!myInnerSol) )
     {
       nbv2++;
       V = TopoDS::Vertex(myMapV1(nbv2));
@@ -252,7 +251,6 @@ Standard_Boolean BRepExtrema_DistShapeShape::Perform()
         mySolutionsShape2.Append(Sol);
       }
     }
-    while ( (nbv2<nbv1) && (!myInnerSol) );
   }
   
   if (!myInnerSol)