1 // Created on: 1991-03-28
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1991-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 _IntWalk_TheFunctionOfTheInt2S_HeaderFile
18 #define _IntWalk_TheFunctionOfTheInt2S_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_Address.hxx>
26 #include <Standard_Real.hxx>
27 #include <Standard_Boolean.hxx>
29 #include <IntImp_ConstIsoparametric.hxx>
30 #include <math_FunctionSetWithDerivatives.hxx>
31 #include <Standard_Integer.hxx>
32 #include <math_Vector.hxx>
33 #include <TColStd_Array1OfReal.hxx>
35 #include <gp_Dir2d.hxx>
36 class StdFail_UndefinedDerivative;
37 class Standard_ConstructionError;
38 class Adaptor3d_HSurface;
39 class Adaptor3d_HSurfaceTool;
44 class IntWalk_TheFunctionOfTheInt2S : public math_FunctionSetWithDerivatives
51 Standard_EXPORT IntWalk_TheFunctionOfTheInt2S(const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2);
53 Standard_EXPORT Standard_Integer NbVariables() const;
55 Standard_EXPORT Standard_Integer NbEquations() const;
57 Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
59 Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
61 Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
63 Standard_EXPORT void ComputeParameters (const IntImp_ConstIsoparametric ChoixIso, const TColStd_Array1OfReal& Param, math_Vector& UVap, math_Vector& BornInf, math_Vector& BornSup, math_Vector& Tolerance);
65 //! returns somme des fi*fi
66 Standard_Real Root() const;
70 Standard_EXPORT Standard_Boolean IsTangent (const math_Vector& UVap, TColStd_Array1OfReal& Param, IntImp_ConstIsoparametric& BestChoix);
72 gp_Dir Direction() const;
74 gp_Dir2d DirectionOnS1() const;
76 gp_Dir2d DirectionOnS2() const;
78 const Handle(Adaptor3d_HSurface)& AuxillarSurface1() const;
80 const Handle(Adaptor3d_HSurface)& AuxillarSurface2() const;
95 Standard_Address surf1;
96 Standard_Address surf2;
100 Standard_Boolean compute;
101 Standard_Boolean tangent;
102 Standard_Real tgduv[4];
104 IntImp_ConstIsoparametric chxIso;
105 Standard_Real paramConst;
122 #define ThePSurface Handle(Adaptor3d_HSurface)
123 #define ThePSurface_hxx <Adaptor3d_HSurface.hxx>
124 #define ThePSurfaceTool Adaptor3d_HSurfaceTool
125 #define ThePSurfaceTool_hxx <Adaptor3d_HSurfaceTool.hxx>
126 #define IntImp_ZerParFunc IntWalk_TheFunctionOfTheInt2S
127 #define IntImp_ZerParFunc_hxx <IntWalk_TheFunctionOfTheInt2S.hxx>
129 #include <IntImp_ZerParFunc.lxx>
132 #undef ThePSurface_hxx
133 #undef ThePSurfaceTool
134 #undef ThePSurfaceTool_hxx
135 #undef IntImp_ZerParFunc
136 #undef IntImp_ZerParFunc_hxx
141 #endif // _IntWalk_TheFunctionOfTheInt2S_HeaderFile