Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:35

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 
0031 
0032 class Geom2dInt_TheProjPCurOfGInter 
0033 {
0034 public:
0035 
0036   DEFINE_STANDARD_ALLOC
0037 
0038   
0039   //! Returns the parameter V of the point on the
0040   //! parametric curve corresponding to the Point Pnt.
0041   //! The Correspondence between Pnt and the point P(V)
0042   //! on the parametric curve must be coherent with the
0043   //! way of determination of the signed distance
0044   //! between a point and the implicit curve.
0045   //! Tol is the tolerance on the distance between a point
0046   //! and the parametrised curve.
0047   //! In that case, no bounds are given. The research of
0048   //! the right parameter has to be made on the natural
0049   //! parametric domain of the curve.
0050   Standard_EXPORT static Standard_Real FindParameter (const Adaptor2d_Curve2d& C, const gp_Pnt2d& Pnt, const Standard_Real Tol);
0051   
0052   //! Returns the parameter V of the point on the
0053   //! parametric curve corresponding to the Point Pnt.
0054   //! The Correspondence between Pnt and the point P(V)
0055   //! on the parametric curve must be coherent with the
0056   //! way of determination of the signed distance
0057   //! between a point and the implicit curve.
0058   //! Tol is the tolerance on the distance between a point
0059   //! and the parametrised curve.
0060   //! LowParameter and HighParameter give the
0061   //! boundaries of the interval in which the parameter
0062   //! certainly lies. These parameters are given to
0063   //! implement a more efficient algorithm. So, it is not
0064   //! necessary to check that the returned value verifies
0065   //! LowParameter <= Value <= HighParameter.
0066   Standard_EXPORT static Standard_Real FindParameter (const Adaptor2d_Curve2d& C, const gp_Pnt2d& Pnt, const Standard_Real LowParameter, const Standard_Real HighParameter, const Standard_Real Tol);
0067 
0068 
0069 
0070 
0071 protected:
0072 
0073 
0074 
0075 
0076 
0077 private:
0078 
0079 
0080 
0081 
0082 
0083 };
0084 
0085 
0086 
0087 
0088 
0089 
0090 
0091 #endif // _Geom2dInt_TheProjPCurOfGInter_HeaderFile