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