Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-04 08:43:07

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, gp_Pnt& theValue) const = 0;
0033   //! Value and first derivatives of surface
0034   virtual void D1(const Standard_Real theU,
0035                   const Standard_Real theV,
0036                   gp_Pnt&             theValue,
0037                   gp_Vec&             theD1U,
0038                   gp_Vec&             theD1V) const = 0;
0039   //! Value, first and second derivatives of surface
0040   virtual void D2(const Standard_Real theU,
0041                   const Standard_Real theV,
0042                   gp_Pnt&             theValue,
0043                   gp_Vec&             theD1U,
0044                   gp_Vec&             theD1V,
0045                   gp_Vec&             theD2U,
0046                   gp_Vec&             theD2V,
0047                   gp_Vec&             theD2UV) const = 0;
0048   //! Value, first, second and third derivatives of surface
0049   virtual void D3(const Standard_Real theU,
0050                   const Standard_Real theV,
0051                   gp_Pnt&             theValue,
0052                   gp_Vec&             theD1U,
0053                   gp_Vec&             theD1V,
0054                   gp_Vec&             theD2U,
0055                   gp_Vec&             theD2V,
0056                   gp_Vec&             theD2UV,
0057                   gp_Vec&             theD3U,
0058                   gp_Vec&             theD3V,
0059                   gp_Vec&             theD3UUV,
0060                   gp_Vec&             theD3UVV) const = 0;
0061   //! Calculates N-th derivatives of surface, where N = theDerU + theDerV.
0062   //!
0063   //! Raises if N < 1 or theDerU < 0 or theDerV < 0
0064   virtual gp_Vec DN(const Standard_Real    theU,
0065                     const Standard_Real    theV,
0066                     const Standard_Integer theDerU,
0067                     const Standard_Integer theDerV) const = 0;
0068 
0069   virtual Handle(GeomEvaluator_Surface) ShallowCopy() const = 0;
0070 
0071   DEFINE_STANDARD_RTTI_INLINE(GeomEvaluator_Surface, Standard_Transient)
0072 };
0073 
0074 DEFINE_STANDARD_HANDLE(GeomEvaluator_Surface, Standard_Transient)
0075 
0076 #endif // _GeomEvaluator_Surface_HeaderFile