|
|
|||
File indexing completed on 2026-09-24 09:15:38
0001 // Created on: 1991-02-21 0002 // Created by: Isabelle GRIGNON 0003 // Copyright (c) 1991-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 _Extrema_POnSurf_HeaderFile 0018 #define _Extrema_POnSurf_HeaderFile 0019 0020 #include <gp_Pnt.hxx> 0021 #include <Precision.hxx> 0022 #include <Standard.hxx> 0023 #include <Standard_DefineAlloc.hxx> 0024 0025 //! Definition of a point on surface. 0026 class Extrema_POnSurf 0027 { 0028 public: 0029 DEFINE_STANDARD_ALLOC 0030 0031 //! Creation of an indefinite point on surface. 0032 Extrema_POnSurf() 0033 : myU(Precision::Infinite()), 0034 myV(Precision::Infinite()), 0035 myP(gp_Pnt(Precision::Infinite(), Precision::Infinite(), Precision::Infinite())) 0036 { 0037 } 0038 0039 //! Creation of a point on surface with parameter 0040 //! values on the surface and a Pnt from gp. 0041 Extrema_POnSurf(const double theU, const double theV, const gp_Pnt& theP) 0042 : myU(theU), 0043 myV(theV), 0044 myP(theP) 0045 { 0046 } 0047 0048 //! Returns the 3d point. 0049 const gp_Pnt& Value() const { return myP; } 0050 0051 //! Sets the params of current POnSurf instance. 0052 //! (e.g. to the point to be projected). 0053 void SetParameters(const double theU, const double theV, const gp_Pnt& thePnt) 0054 { 0055 myU = theU; 0056 myV = theV; 0057 myP = thePnt; 0058 } 0059 0060 //! Returns the parameter values on the surface. 0061 void Parameter(double& theU, double& theV) const 0062 { 0063 theU = myU; 0064 theV = myV; 0065 } 0066 0067 private: 0068 double myU; 0069 double myV; 0070 gp_Pnt myP; 0071 }; 0072 0073 #endif // _Extrema_POnSurf_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|