Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2015-09-21
0002 // Copyright (c) 2015 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef _GeomEvaluator_Surface_HeaderFile
0016 #define _GeomEvaluator_Surface_HeaderFile
0017 
0018 #include <Standard_Transient.hxx>
0019 #include <Standard_Type.hxx>
0020 
0021 class gp_Pnt;
0022 class gp_Vec;
0023 
0024 //! Interface for calculation of values and derivatives for different kinds of surfaces.
0025 //! Works both with adaptors and surfaces.
0026 class GeomEvaluator_Surface : public Standard_Transient
0027 {
0028 public:
0029   GeomEvaluator_Surface() {}
0030 
0031   //! Value of surface
0032   virtual void D0(const Standard_Real theU, const Standard_Real theV,
0033                   gp_Pnt& theValue) const = 0;
0034   //! Value and first derivatives of surface
0035   virtual void D1(const Standard_Real theU, const Standard_Real theV,
0036                   gp_Pnt& theValue, gp_Vec& theD1U, gp_Vec& theD1V) const = 0;
0037   //! Value, first and second derivatives of surface
0038   virtual void D2(const Standard_Real theU, const Standard_Real theV,
0039                   gp_Pnt& theValue, gp_Vec& theD1U, gp_Vec& theD1V,
0040                   gp_Vec& theD2U, gp_Vec& theD2V, gp_Vec& theD2UV) const = 0;
0041   //! Value, first, second and third derivatives of surface
0042   virtual void D3(const Standard_Real theU, const Standard_Real theV,
0043                   gp_Pnt& theValue, gp_Vec& theD1U, gp_Vec& theD1V,
0044                   gp_Vec& theD2U, gp_Vec& theD2V, gp_Vec& theD2UV,
0045                   gp_Vec& theD3U, gp_Vec& theD3V, gp_Vec& theD3UUV, gp_Vec& theD3UVV) const = 0;
0046   //! Calculates N-th derivatives of surface, where N = theDerU + theDerV.
0047   //!
0048   //! Raises if N < 1 or theDerU < 0 or theDerV < 0
0049   virtual gp_Vec DN(const Standard_Real theU, const Standard_Real theV,
0050                     const Standard_Integer theDerU, const Standard_Integer theDerV) const = 0;
0051 
0052   virtual Handle(GeomEvaluator_Surface) ShallowCopy() const  = 0;
0053 
0054   DEFINE_STANDARD_RTTI_INLINE(GeomEvaluator_Surface,Standard_Transient)
0055 };
0056 
0057 DEFINE_STANDARD_HANDLE(GeomEvaluator_Surface, Standard_Transient)
0058 
0059 
0060 #endif // _GeomEvaluator_Surface_HeaderFile