0023288: IntCurve_IntConicConic_1.cxx: if(A) {...} else if (A){...} pattern detected.
authoraba <aba@opencascade.com>
Fri, 12 Oct 2012 11:29:57 +0000 (15:29 +0400)
committeraba <aba@opencascade.com>
Fri, 2 Nov 2012 10:13:39 +0000 (14:13 +0400)
Unrealizable condition ( second condition block 'else if(d0102>AbsR1mR2-Tol)' ) was deleted.

src/IntCurve/IntCurve_IntConicConic_1.cxx

index 600994d..6432d04 100755 (executable)
@@ -240,24 +240,6 @@ void CircleCircleGeometricIntersection(const gp_Circ2d& C1
       }
     }
     //--------------------------------------------------------------
-    //--    1 seul segment donne par Inter C2 avec C1- ou C1+
-    else if(dO1O2 > AbsR1mR2-Tol) {
-      
-      Standard_Real dx=(R1mTolR1mTol+dO1O2dO1O2-R2R2)/(dO1O2+dO1O2);
-      Standard_Real dy=(R1mTolR1mTol-dx*dx);
-      dy=(dy>=0.0)? Sqrt(dy) : 0.0;
-      dAlpha1=ATan2(dy,dx);
-      
-      dx=(R1pTolR1pTol+dO1O2dO1O2-R2R2)/(dO1O2+dO1O2);
-      dy=(R1pTolR1pTol-dx*dx);
-      dy=(dy>=0.0)? Sqrt(dy) : 0.0;
-      Standard_Real dAlpha2=ATan2(dy,dx);
-      
-      if(dAlpha2>dAlpha1) dAlpha1 = dAlpha2;
-      C1_binf1=-dAlpha1;  C1_bsup1=dAlpha1;
-      nbsol=1;
-    }
-    //--------------------------------------------------------------
     else {
       if((dO1O2 > AbsR1mR2-TolTang) && (AbsR1mR2-TolTang)>0.0) { 
        C1_binf1=0.0;