|
|
|||
File indexing completed on 2026-09-25 09:20:20
0001 // Created on: 1992-10-13 0002 // Created by: Laurent BUCHARD 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 _IntCurve_ProjectOnPConicTool_HeaderFile 0018 #define _IntCurve_ProjectOnPConicTool_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 0023 class IntCurve_PConic; 0024 class gp_Pnt2d; 0025 0026 //! This class provides a tool which computes the parameter 0027 //! of a point near a parametric conic. 0028 class IntCurve_ProjectOnPConicTool 0029 { 0030 public: 0031 DEFINE_STANDARD_ALLOC 0032 0033 //! Returns the parameter V of the point on the 0034 //! parametric curve corresponding to the Point Pnt. The 0035 //! Correspondence between Pnt and the point P(V) on the 0036 //! parametric curve must be coherent with the way of 0037 //! determination of the signed distance between a point and 0038 //! the implicit curve. Tol is the tolerance on the distance 0039 //! between a point and the parametrised curve. In that case, 0040 //! no bounds are given. The research of the right parameter 0041 //! has to be made on the natural parametric domain of the 0042 //! curve. 0043 Standard_EXPORT static double FindParameter(const IntCurve_PConic& C, 0044 const gp_Pnt2d& Pnt, 0045 const double Tol); 0046 0047 //! Returns the parameter V of the point on the 0048 //! parametric curve corresponding to the Point Pnt. The 0049 //! Correspondence between Pnt and the point P(V) on the 0050 //! parametric curve must be coherent with the way of 0051 //! determination of the signed distance between a point and 0052 //! the implicit curve. Tol is the tolerance on the distance 0053 //! between a point and the parametrised curve. LowParameter 0054 //! and HighParameter give the boundaries of the interval in 0055 //! which the parameter certainly lies. These parameters are 0056 //! given to implement a more efficient algorithm. So, it is 0057 //! not necessary to check that the returned value verifies 0058 //! LowParameter <= Value <= HighParameter. 0059 Standard_EXPORT static double FindParameter(const IntCurve_PConic& C, 0060 const gp_Pnt2d& Pnt, 0061 const double LowParameter, 0062 const double HighParameter, 0063 const double Tol); 0064 }; 0065 0066 #endif // _IntCurve_ProjectOnPConicTool_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|