0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / GeomEvaluator / GeomEvaluator_Surface.hxx
CommitLineData
6b84c3f7 1// Created on: 2015-09-21
2// Copyright (c) 2015 OPEN CASCADE SAS
3//
4// This file is part of Open CASCADE Technology software library.
5//
6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
11//
12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
14
15#ifndef _GeomEvaluator_Surface_HeaderFile
16#define _GeomEvaluator_Surface_HeaderFile
17
18#include <Standard_Transient.hxx>
19#include <Standard_Type.hxx>
20
21class gp_Pnt;
22class gp_Vec;
23
24//! Interface for calculation of values and derivatives for different kinds of surfaces.
25//! Works both with adaptors and surfaces.
26class GeomEvaluator_Surface : public Standard_Transient
27{
28public:
29 GeomEvaluator_Surface() {}
30
31 //! Value of surface
32 virtual void D0(const Standard_Real theU, const Standard_Real theV,
33 gp_Pnt& theValue) const = 0;
34 //! Value and first derivatives of surface
35 virtual void D1(const Standard_Real theU, const Standard_Real theV,
36 gp_Pnt& theValue, gp_Vec& theD1U, gp_Vec& theD1V) const = 0;
37 //! Value, first and second derivatives of surface
38 virtual void D2(const Standard_Real theU, const Standard_Real theV,
39 gp_Pnt& theValue, gp_Vec& theD1U, gp_Vec& theD1V,
40 gp_Vec& theD2U, gp_Vec& theD2V, gp_Vec& theD2UV) const = 0;
41 //! Value, first, second and third derivatives of surface
42 virtual void D3(const Standard_Real theU, const Standard_Real theV,
43 gp_Pnt& theValue, gp_Vec& theD1U, gp_Vec& theD1V,
44 gp_Vec& theD2U, gp_Vec& theD2V, gp_Vec& theD2UV,
45 gp_Vec& theD3U, gp_Vec& theD3V, gp_Vec& theD3UUV, gp_Vec& theD3UVV) const = 0;
46 //! Calculates N-th derivatives of surface, where N = theDerU + theDerV.
47 //!
48 //! Raises if N < 1 or theDerU < 0 or theDerV < 0
49 virtual gp_Vec DN(const Standard_Real theU, const Standard_Real theV,
50 const Standard_Integer theDerU, const Standard_Integer theDerV) const = 0;
51
872a7e3a 52 virtual Handle(GeomEvaluator_Surface) ShallowCopy() const = 0;
53
92efcf78 54 DEFINE_STANDARD_RTTI_INLINE(GeomEvaluator_Surface,Standard_Transient)
6b84c3f7 55};
56
57DEFINE_STANDARD_HANDLE(GeomEvaluator_Surface, Standard_Transient)
58
59
60#endif // _GeomEvaluator_Surface_HeaderFile