0026506: Change class BRepLib_CheckCurveOnSurface
[occt.git] / src / IntTools / IntTools_Tools.cxx
index 7045298..f00026c 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#include <IntTools_Tools.ixx>
-
-#include <Precision.hxx>
-
-#include <TopExp_Explorer.hxx>
-#include <TopTools_IndexedDataMapOfShapeShape.hxx>
-
-#include <TopoDS.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopoDS_Vertex.hxx>
-#include <TopoDS_Edge.hxx>
-#include <TopoDS_Face.hxx>
-#include <TopoDS_Wire.hxx>
-#include <TopLoc_Location.hxx>
 
+#include <Bnd_Box.hxx>
 #include <BRep_Builder.hxx>
 #include <BRep_Tool.hxx>
-#include <BRepAdaptor_Surface.hxx>
 #include <BRepAdaptor_Curve.hxx>
 #include <BRepAdaptor_Surface.hxx>
-
-#include <gp_Pnt.hxx>
-#include <gp_Pnt2d.hxx>
-#include <gp.hxx>
-#include <gp_Lin.hxx>
-#include <gp_Dir.hxx>
-#include <gp_Ax1.hxx>
-
-#include <Geom_Curve.hxx>
-#include <GeomAdaptor_Surface.hxx>
-#include <Geom_Surface.hxx>
-#include <GeomAPI_ProjectPointOnSurf.hxx>
-#include <GeomAPI_ProjectPointOnCurve.hxx>
-#include <GeomAdaptor_Curve.hxx>
-#include <GeomAbs_CurveType.hxx>
-#include <Geom_Line.hxx>
 #include <Geom2d_Curve.hxx>
+#include <Geom2d_TrimmedCurve.hxx>
 #include <Geom_BoundedCurve.hxx>
+#include <Geom_Curve.hxx>
 #include <Geom_Geometry.hxx>
+#include <Geom_Line.hxx>
+#include <Geom_Surface.hxx>
 #include <Geom_TrimmedCurve.hxx>
-#include <Geom2d_TrimmedCurve.hxx>
-
-#include <IntTools_FClass2d.hxx>
+#include <GeomAbs_CurveType.hxx>
+#include <GeomAdaptor_Curve.hxx>
+#include <GeomAdaptor_Surface.hxx>
+#include <GeomAPI_ProjectPointOnCurve.hxx>
+#include <GeomAPI_ProjectPointOnSurf.hxx>
+#include <gp.hxx>
+#include <gp_Ax1.hxx>
+#include <gp_Dir.hxx>
+#include <gp_Lin.hxx>
+#include <gp_Pln.hxx>
+#include <gp_Pnt.hxx>
+#include <gp_Pnt2d.hxx>
+#include <IntTools_CommonPrt.hxx>
 #include <IntTools_Curve.hxx>
+#include <IntTools_FClass2d.hxx>
+#include <IntTools_Range.hxx>
 #include <IntTools_SequenceOfCurves.hxx>
+#include <IntTools_Tools.hxx>
+#include <Precision.hxx>
+#include <TopExp_Explorer.hxx>
+#include <TopLoc_Location.hxx>
+#include <TopoDS.hxx>
+#include <TopoDS_Edge.hxx>
+#include <TopoDS_Face.hxx>
+#include <TopoDS_Shape.hxx>
+#include <TopoDS_Vertex.hxx>
+#include <TopoDS_Wire.hxx>
+#include <TopTools_IndexedDataMapOfShapeShape.hxx>
 
 static
   void ParabolaTolerance(const Handle(Geom_Curve)& ,
@@ -792,10 +789,10 @@ Standard_Boolean IntTools_Tools::ComputeTolerance
    Standard_Real& theMaxDist,
    Standard_Real& theMaxPar)
 {
-  BRepLib_CheckCurveOnSurface aCS;
+  GeomLib_CheckCurveOnSurface aCS;
   //
-  aCS.Init(theCurve3D, theCurve2D, theSurf, theFirst, theLast);
-  aCS.Perform();
+  aCS.Init(theCurve3D, theSurf, theFirst, theLast);
+  aCS.Perform(theCurve2D);
   if (!aCS.IsDone()) {
     return Standard_False;
   }