File indexing completed on 2025-01-18 10:04:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntWalk_TheFunctionOfTheInt2S_HeaderFile
0018 #define _IntWalk_TheFunctionOfTheInt2S_HeaderFile
0019
0020 #include <Adaptor3d_Surface.hxx>
0021 #include <gp_Pnt.hxx>
0022 #include <gp_Vec.hxx>
0023 #include <IntImp_ConstIsoparametric.hxx>
0024 #include <math_FunctionSetWithDerivatives.hxx>
0025 #include <math_Vector.hxx>
0026 #include <TColStd_Array1OfReal.hxx>
0027 #include <gp_Dir.hxx>
0028 #include <gp_Dir2d.hxx>
0029
0030 class Adaptor3d_HSurfaceTool;
0031 class math_Matrix;
0032
0033 class IntWalk_TheFunctionOfTheInt2S : public math_FunctionSetWithDerivatives
0034 {
0035 public:
0036
0037 DEFINE_STANDARD_ALLOC
0038
0039
0040 Standard_EXPORT IntWalk_TheFunctionOfTheInt2S(const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2);
0041
0042 Standard_EXPORT Standard_Integer NbVariables() const;
0043
0044 Standard_EXPORT Standard_Integer NbEquations() const;
0045
0046 Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
0047
0048 Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
0049
0050 Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
0051
0052 Standard_EXPORT void ComputeParameters (const IntImp_ConstIsoparametric ChoixIso, const TColStd_Array1OfReal& Param, math_Vector& UVap, math_Vector& BornInf, math_Vector& BornSup, math_Vector& Tolerance);
0053
0054
0055 Standard_Real Root() const;
0056
0057 gp_Pnt Point() const;
0058
0059 Standard_EXPORT Standard_Boolean IsTangent (const math_Vector& UVap, TColStd_Array1OfReal& Param, IntImp_ConstIsoparametric& BestChoix);
0060
0061 gp_Dir Direction() const;
0062
0063 gp_Dir2d DirectionOnS1() const;
0064
0065 gp_Dir2d DirectionOnS2() const;
0066
0067 const Handle(Adaptor3d_Surface)& AuxillarSurface1() const;
0068
0069 const Handle(Adaptor3d_Surface)& AuxillarSurface2() const;
0070
0071
0072
0073
0074 protected:
0075
0076
0077
0078
0079
0080 private:
0081
0082
0083
0084 Standard_Address surf1;
0085 Standard_Address surf2;
0086 gp_Pnt pntsol1;
0087 gp_Pnt pntsol2;
0088 Standard_Real f[3];
0089 Standard_Boolean compute;
0090 Standard_Boolean tangent;
0091 Standard_Real tgduv[4];
0092 gp_Vec dpuv[4];
0093 IntImp_ConstIsoparametric chxIso;
0094 Standard_Real paramConst;
0095 Standard_Real ua0;
0096 Standard_Real va0;
0097 Standard_Real ua1;
0098 Standard_Real va1;
0099 Standard_Real ub0;
0100 Standard_Real vb0;
0101 Standard_Real ub1;
0102 Standard_Real vb1;
0103 Standard_Real ures1;
0104 Standard_Real ures2;
0105 Standard_Real vres1;
0106 Standard_Real vres2;
0107
0108
0109 };
0110
0111 #define ThePSurface Handle(Adaptor3d_Surface)
0112 #define ThePSurface_hxx <Adaptor3d_Surface.hxx>
0113 #define ThePSurfaceTool Adaptor3d_HSurfaceTool
0114 #define ThePSurfaceTool_hxx <Adaptor3d_HSurfaceTool.hxx>
0115 #define IntImp_ZerParFunc IntWalk_TheFunctionOfTheInt2S
0116 #define IntImp_ZerParFunc_hxx <IntWalk_TheFunctionOfTheInt2S.hxx>
0117
0118 #include <IntImp_ZerParFunc.lxx>
0119
0120 #undef ThePSurface
0121 #undef ThePSurface_hxx
0122 #undef ThePSurfaceTool
0123 #undef ThePSurfaceTool_hxx
0124 #undef IntImp_ZerParFunc
0125 #undef IntImp_ZerParFunc_hxx
0126
0127
0128
0129
0130 #endif