0028966: Coding Rules - remove Adaptor2d_HCurve2d, Adaptor3d_HCurve and Adaptor3d_HSu...
[occt.git] / src / IntWalk / IntWalk_TheFunctionOfTheInt2S.hxx
CommitLineData
42cf5bc1 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
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _IntWalk_TheFunctionOfTheInt2S_HeaderFile
18#define _IntWalk_TheFunctionOfTheInt2S_HeaderFile
19
c22b52d6 20#include <Adaptor3d_Surface.hxx>
42cf5bc1 21#include <gp_Pnt.hxx>
42cf5bc1 22#include <gp_Vec.hxx>
23#include <IntImp_ConstIsoparametric.hxx>
24#include <math_FunctionSetWithDerivatives.hxx>
42cf5bc1 25#include <math_Vector.hxx>
26#include <TColStd_Array1OfReal.hxx>
27#include <gp_Dir.hxx>
28#include <gp_Dir2d.hxx>
c22b52d6 29
42cf5bc1 30class Adaptor3d_HSurfaceTool;
31class math_Matrix;
32
42cf5bc1 33class IntWalk_TheFunctionOfTheInt2S : public math_FunctionSetWithDerivatives
34{
35public:
36
37 DEFINE_STANDARD_ALLOC
38
39
c22b52d6 40 Standard_EXPORT IntWalk_TheFunctionOfTheInt2S(const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2);
42cf5bc1 41
42 Standard_EXPORT Standard_Integer NbVariables() const;
43
44 Standard_EXPORT Standard_Integer NbEquations() const;
45
46 Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
47
48 Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
49
50 Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
51
52 Standard_EXPORT void ComputeParameters (const IntImp_ConstIsoparametric ChoixIso, const TColStd_Array1OfReal& Param, math_Vector& UVap, math_Vector& BornInf, math_Vector& BornSup, math_Vector& Tolerance);
53
36b9ff75 54 //! returns somme des fi*fi
42cf5bc1 55 Standard_Real Root() const;
56
57 gp_Pnt Point() const;
58
59 Standard_EXPORT Standard_Boolean IsTangent (const math_Vector& UVap, TColStd_Array1OfReal& Param, IntImp_ConstIsoparametric& BestChoix);
60
61 gp_Dir Direction() const;
62
63 gp_Dir2d DirectionOnS1() const;
64
65 gp_Dir2d DirectionOnS2() const;
66
c22b52d6 67 const Handle(Adaptor3d_Surface)& AuxillarSurface1() const;
42cf5bc1 68
c22b52d6 69 const Handle(Adaptor3d_Surface)& AuxillarSurface2() const;
42cf5bc1 70
71
72
73
74protected:
75
76
77
78
79
80private:
81
82
83
84 Standard_Address surf1;
85 Standard_Address surf2;
86 gp_Pnt pntsol1;
87 gp_Pnt pntsol2;
88 Standard_Real f[3];
89 Standard_Boolean compute;
90 Standard_Boolean tangent;
91 Standard_Real tgduv[4];
92 gp_Vec dpuv[4];
93 IntImp_ConstIsoparametric chxIso;
94 Standard_Real paramConst;
95 Standard_Real ua0;
96 Standard_Real va0;
97 Standard_Real ua1;
98 Standard_Real va1;
99 Standard_Real ub0;
100 Standard_Real vb0;
101 Standard_Real ub1;
102 Standard_Real vb1;
103 Standard_Real ures1;
104 Standard_Real ures2;
105 Standard_Real vres1;
106 Standard_Real vres2;
107
108
109};
110
c22b52d6 111#define ThePSurface Handle(Adaptor3d_Surface)
112#define ThePSurface_hxx <Adaptor3d_Surface.hxx>
42cf5bc1 113#define ThePSurfaceTool Adaptor3d_HSurfaceTool
114#define ThePSurfaceTool_hxx <Adaptor3d_HSurfaceTool.hxx>
115#define IntImp_ZerParFunc IntWalk_TheFunctionOfTheInt2S
116#define IntImp_ZerParFunc_hxx <IntWalk_TheFunctionOfTheInt2S.hxx>
117
118#include <IntImp_ZerParFunc.lxx>
119
120#undef ThePSurface
121#undef ThePSurface_hxx
122#undef ThePSurfaceTool
123#undef ThePSurfaceTool_hxx
124#undef IntImp_ZerParFunc
125#undef IntImp_ZerParFunc_hxx
126
127
128
129
130#endif // _IntWalk_TheFunctionOfTheInt2S_HeaderFile