Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-08 09:16:09

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_TheProjPCurOfGInter_HeaderFile
0018 #define _Geom2dInt_TheProjPCurOfGInter_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 class Adaptor2d_Curve2d;
0024 class Geom2dInt_Geom2dCurveTool;
0025 class Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter;
0026 class Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter;
0027 class Geom2dInt_PCLocFOfTheLocateExtPCOfTheProjPCurOfGInter;
0028 class gp_Pnt2d;
0029 
0030 class Geom2dInt_TheProjPCurOfGInter
0031 {
0032 public:
0033   DEFINE_STANDARD_ALLOC
0034 
0035   //! Returns the parameter V of the point on the
0036   //! parametric curve corresponding to the Point Pnt.
0037   //! The Correspondence between Pnt and the point P(V)
0038   //! on the parametric curve must be coherent with the
0039   //! way of determination of the signed distance
0040   //! between a point and the implicit curve.
0041   //! Tol is the tolerance on the distance between a point
0042   //! and the parametrised curve.
0043   //! In that case, no bounds are given. The research of
0044   //! the right parameter has to be made on the natural
0045   //! parametric domain of the curve.
0046   Standard_EXPORT static Standard_Real FindParameter(const Adaptor2d_Curve2d& C,
0047                                                      const gp_Pnt2d&          Pnt,
0048                                                      const Standard_Real      Tol);
0049 
0050   //! Returns the parameter V of the point on the
0051   //! parametric curve corresponding to the Point Pnt.
0052   //! The Correspondence between Pnt and the point P(V)
0053   //! on the parametric curve must be coherent with the
0054   //! way of determination of the signed distance
0055   //! between a point and the implicit curve.
0056   //! Tol is the tolerance on the distance between a point
0057   //! and the parametrised curve.
0058   //! LowParameter and HighParameter give the
0059   //! boundaries of the interval in which the parameter
0060   //! certainly lies. These parameters are given to
0061   //! implement a more efficient algorithm. So, it is not
0062   //! necessary to check that the returned value verifies
0063   //! LowParameter <= Value <= HighParameter.
0064   Standard_EXPORT static Standard_Real FindParameter(const Adaptor2d_Curve2d& C,
0065                                                      const gp_Pnt2d&          Pnt,
0066                                                      const Standard_Real      LowParameter,
0067                                                      const Standard_Real      HighParameter,
0068                                                      const Standard_Real      Tol);
0069 
0070 protected:
0071 private:
0072 };
0073 
0074 #endif // _Geom2dInt_TheProjPCurOfGInter_HeaderFile