Salome HOME
[bos #36169] EDF 25230 - Conversion xyz => uv => xyz. Replace all calls of ShapeAnaly...
[modules/geom.git] / src / GEOMImpl / GEOMImpl_PointDriver.cxx
index 932d9e9917659e7be788b869c40f97b41d41b397..6cb28d155a158c352d0a2d507d0a2efc214f2de2 100644 (file)
 #include <GEOM_Function.hxx>
 #include <GEOMAlgo_AlgoTools.hxx>
 
-#include <ShapeAnalysis.hxx>
-
 #include <BRep_Builder.hxx>
 #include <BRep_Tool.hxx>
 #include <BRepAdaptor_Curve.hxx>
 #include <BRepBuilderAPI_MakeVertex.hxx>
 #include <BRepExtrema_DistShapeShape.hxx>
+#include <BRepTools.hxx>
 
 #include <TopAbs.hxx>
 #include <TopExp.hxx>
@@ -282,8 +281,7 @@ Standard_Integer GEOMImpl_PointDriver::Execute(Handle(TFunction_Logbook)& log) c
     TopoDS_Face F = TopoDS::Face(aRefShape);
     Handle(Geom_Surface) aSurf = BRep_Tool::Surface(F);
     Standard_Real U1,U2,V1,V2;
-    //aSurf->Bounds(U1,U2,V1,V2);
-    ShapeAnalysis::GetFaceUVBounds(F,U1,U2,V1,V2);
+    BRepTools::UVBounds(F,U1,U2,V1,V2);
     Standard_Real U = U1 + (U2-U1) * aPI.GetParameter();
     Standard_Real V = V1 + (V2-V1) * aPI.GetParameter2();
     aPnt = aSurf->Value(U,V);