Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-10 09:16:42

0001 // Created on: 1992-06-04
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter_HeaderFile
0018 #define _Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Real.hxx>
0025 class Adaptor2d_Curve2d;
0026 class Geom2dInt_Geom2dCurveTool;
0027 class Extrema_POnCurv2d;
0028 class gp_Pnt2d;
0029 
0030 class Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter
0031 {
0032 public:
0033   DEFINE_STANDARD_ALLOC
0034 
0035   //! Among a set of points {C(ui),i=1,NbU}, locate the point
0036   //! P=C(uj) such that:
0037   //! distance(P,C) = Min{distance(P,C(ui))}
0038   Standard_EXPORT static void Locate(const gp_Pnt2d&          P,
0039                                      const Adaptor2d_Curve2d& C,
0040                                      const Standard_Integer   NbU,
0041                                      Extrema_POnCurv2d&       Papp);
0042 
0043   //! Among a set of points {C(ui),i=1,NbU}, locate the point
0044   //! P=C(uj) such that:
0045   //! distance(P,C) = Min{distance(P,C(ui))}
0046   //! The research is done between umin and usup.
0047   Standard_EXPORT static void Locate(const gp_Pnt2d&          P,
0048                                      const Adaptor2d_Curve2d& C,
0049                                      const Standard_Integer   NbU,
0050                                      const Standard_Real      Umin,
0051                                      const Standard_Real      Usup,
0052                                      Extrema_POnCurv2d&       Papp);
0053 
0054   //! Among two sets of points {C1(ui),i=1,NbU} and
0055   //! {C2(vj),j=1,NbV}, locate the two points P1=C1(uk) and
0056   //! P2=C2(vl) such that:
0057   //! distance(P1,P2) = Min {distance(C1(ui),C2(vj))}.
0058   Standard_EXPORT static void Locate(const Adaptor2d_Curve2d& C1,
0059                                      const Adaptor2d_Curve2d& C2,
0060                                      const Standard_Integer   NbU,
0061                                      const Standard_Integer   NbV,
0062                                      Extrema_POnCurv2d&       Papp1,
0063                                      Extrema_POnCurv2d&       Papp2);
0064 
0065 protected:
0066 private:
0067 };
0068 
0069 #endif // _Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter_HeaderFile