1 // Created on: 1998-04-27
2 // Created by: Stephanie HUMEAU
3 // Copyright (c) 1998-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _GeomFill_FunctionDraft_HeaderFile
18 #define _GeomFill_FunctionDraft_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <math_FunctionSetWithDerivatives.hxx>
25 #include <Standard_Integer.hxx>
26 #include <Standard_Boolean.hxx>
27 #include <math_Vector.hxx>
28 #include <Standard_Real.hxx>
29 class Adaptor3d_HCurve;
30 class Adaptor3d_HSurface;
33 class GeomFill_Tensor;
37 class GeomFill_FunctionDraft : public math_FunctionSetWithDerivatives
44 Standard_EXPORT GeomFill_FunctionDraft(const Handle(Adaptor3d_HSurface)& S, const Handle(Adaptor3d_HCurve)& C);
46 //! returns the number of variables of the function.
47 Standard_EXPORT virtual Standard_Integer NbVariables() const Standard_OVERRIDE;
49 //! returns the number of equations of the function.
50 Standard_EXPORT virtual Standard_Integer NbEquations() const Standard_OVERRIDE;
52 //! computes the values <F> of the Functions for the
54 //! Returns True if the computation was done successfully,
56 Standard_EXPORT virtual Standard_Boolean Value (const math_Vector& X, math_Vector& F) Standard_OVERRIDE;
58 //! returns the values <D> of the derivatives for the
60 //! Returns True if the computation was done successfully,
62 Standard_EXPORT virtual Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D) Standard_OVERRIDE;
64 //! returns the values <F> of the functions and the derivatives
65 //! <D> for the variable <X>.
66 //! Returns True if the computation was done successfully,
68 Standard_EXPORT virtual Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D) Standard_OVERRIDE;
70 //! returns the values <F> of the T derivatives for
71 //! the parameter Param .
72 Standard_EXPORT Standard_Boolean DerivT (const Handle(Adaptor3d_HCurve)& C, const Standard_Real Param, const Standard_Real W, const gp_Vec& dN, const Standard_Real teta, math_Vector& F);
74 //! returns the values <F> of the T2 derivatives for
75 //! the parameter Param .
76 Standard_EXPORT Standard_Boolean Deriv2T (const Handle(Adaptor3d_HCurve)& C, const Standard_Real Param, const Standard_Real W, const gp_Vec& d2N, const Standard_Real teta, math_Vector& F);
78 //! returns the values <D> of the TX derivatives for
79 //! the parameter Param .
80 Standard_EXPORT Standard_Boolean DerivTX (const gp_Vec& dN, const Standard_Real teta, math_Matrix& D);
82 //! returns the values <T> of the X2 derivatives for
83 //! the parameter Param .
84 Standard_EXPORT Standard_Boolean Deriv2X (const math_Vector& X, GeomFill_Tensor& T);
99 Handle(Adaptor3d_HCurve) TheCurve;
100 Handle(Adaptor3d_HSurface) TheSurface;
111 #endif // _GeomFill_FunctionDraft_HeaderFile