0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / BRepApprox / BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-06-06
2// Created by: Jean Yves LEBEY
3// Copyright (c) 1995-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 _BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox_HeaderFile
18#define _BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Address.hxx>
25#include <gp_Pnt.hxx>
26#include <Standard_Real.hxx>
27#include <Standard_Boolean.hxx>
28#include <gp_Vec.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>
34#include <gp_Dir.hxx>
35#include <gp_Dir2d.hxx>
36class StdFail_UndefinedDerivative;
37class Standard_ConstructionError;
38class BRepAdaptor_Surface;
39class BRepApprox_SurfaceTool;
40class math_Matrix;
41
42
43
44class BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox : public math_FunctionSetWithDerivatives
45{
46public:
47
48 DEFINE_STANDARD_ALLOC
49
42cf5bc1 50 Standard_EXPORT BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox(const BRepAdaptor_Surface& S1, const BRepAdaptor_Surface& S2);
51
52 Standard_EXPORT Standard_Integer NbVariables() const;
53
54 Standard_EXPORT Standard_Integer NbEquations() const;
55
56 Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
57
58 Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
59
60 Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
61
62 Standard_EXPORT void ComputeParameters (const IntImp_ConstIsoparametric ChoixIso, const TColStd_Array1OfReal& Param, math_Vector& UVap, math_Vector& BornInf, math_Vector& BornSup, math_Vector& Tolerance);
63
36b9ff75 64 //! returns somme des fi*fi
42cf5bc1 65 Standard_Real Root() const;
66
67 gp_Pnt Point() const;
68
69 Standard_EXPORT Standard_Boolean IsTangent (const math_Vector& UVap, TColStd_Array1OfReal& Param, IntImp_ConstIsoparametric& BestChoix);
70
71 gp_Dir Direction() const;
72
73 gp_Dir2d DirectionOnS1() const;
74
75 gp_Dir2d DirectionOnS2() const;
76
77 const BRepAdaptor_Surface& AuxillarSurface1() const;
78
79 const BRepAdaptor_Surface& AuxillarSurface2() const;
80
81
82
83
84protected:
85
86
87
88
89
90private:
91
92
93
94 Standard_Address surf1;
95 Standard_Address surf2;
96 gp_Pnt pntsol1;
97 gp_Pnt pntsol2;
98 Standard_Real f[3];
99 Standard_Boolean compute;
100 Standard_Boolean tangent;
101 Standard_Real tgduv[4];
102 gp_Vec dpuv[4];
103 IntImp_ConstIsoparametric chxIso;
104 Standard_Real paramConst;
105 Standard_Real ua0;
106 Standard_Real va0;
107 Standard_Real ua1;
108 Standard_Real va1;
109 Standard_Real ub0;
110 Standard_Real vb0;
111 Standard_Real ub1;
112 Standard_Real vb1;
113 Standard_Real ures1;
114 Standard_Real ures2;
115 Standard_Real vres1;
116 Standard_Real vres2;
117
118
119};
120
121#define ThePSurface BRepAdaptor_Surface
122#define ThePSurface_hxx <BRepAdaptor_Surface.hxx>
123#define ThePSurfaceTool BRepApprox_SurfaceTool
124#define ThePSurfaceTool_hxx <BRepApprox_SurfaceTool.hxx>
125#define IntImp_ZerParFunc BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox
126#define IntImp_ZerParFunc_hxx <BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox.hxx>
127
128#include <IntImp_ZerParFunc.lxx>
129
130#undef ThePSurface
131#undef ThePSurface_hxx
132#undef ThePSurfaceTool
133#undef ThePSurfaceTool_hxx
134#undef IntImp_ZerParFunc
135#undef IntImp_ZerParFunc_hxx
136
137
138
139
140#endif // _BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox_HeaderFile