0032008: Modeling Algorithms - disallow implicit copy of Extrema algorithms
[occt.git] / src / GeomAPI / GeomAPI_ExtremaCurveCurve.cxx
index f474c36..ba64d0f 100644 (file)
@@ -86,9 +86,9 @@ void GeomAPI_ExtremaCurveCurve::Init
   Standard_Real Tol = Precision::PConfusion();
   myC1.Load(C1);
   myC2.Load(C2);
-  Extrema_ExtCC theExtCC(myC1, myC2, Tol,Tol);
-  myExtCC = theExtCC;
 
+  myExtCC.Initialize (myC1, myC2, Tol,Tol);
+  myExtCC.Perform();
   myIsDone = myExtCC.IsDone() && ( myExtCC.NbExt() > 0);
 
   if ( myIsDone) {
@@ -128,8 +128,9 @@ void GeomAPI_ExtremaCurveCurve::Init
   Standard_Real Tol = Precision::PConfusion();
   myC1.Load(C1);
   myC2.Load(C2);
-  Extrema_ExtCC theExtCC(myC1,myC2,U1min,U1max,U2min,U2max,Tol,Tol);
-  myExtCC = theExtCC;
+
+  myExtCC.Initialize (myC1,myC2,U1min,U1max,U2min,U2max,Tol,Tol);
+  myExtCC.Perform();
 
   myIsDone = myExtCC.IsDone() && ( myExtCC.NbExt() > 0 );