0026431: Can't cut a sphere from a cylinder
[occt.git] / src / TopOpeBRepTool / TopOpeBRepTool_CurveTool.cxx
index d66abad..2bdfe38 100644 (file)
@@ -318,8 +318,7 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
   Standard_Boolean CompPC1 = myGeomTool.CompPC1();
   Standard_Boolean CompPC2 = myGeomTool.CompPC2();
   Standard_Real tol3d,tol2d;
-  Standard_Boolean RelativeTol;
-  myGeomTool.GetTolerances(tol3d,tol2d,RelativeTol);
+  myGeomTool.GetTolerances(tol3d,tol2d);
   Standard_Integer NbPntMax = myGeomTool.NbPntMax();
 
 #ifdef OCCT_DEBUG
@@ -599,7 +598,7 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
   Handle(BRepApprox_ApproxLine) AL;
   AL = new BRepApprox_ApproxLine(HC3D,HPC1,HPC2);
 
-    Approx.SetParameters(tol3d,tol2d,RelativeTol,degmin,degmax,nitmax,NbPntMax,withtangency,
+    Approx.SetParameters(tol3d,tol2d,degmin,degmax,nitmax,NbPntMax,withtangency,
                         parametrization);
 
     if     (CompC3D && CompPC1 && BAS1.GetType() == GeomAbs_Plane) {