File indexing completed on 2025-01-18 10:03:07
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 <TColStd_Array1OfReal.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
0038
0039 class BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox : public math_FunctionSetWithDerivatives
0040 {
0041 public:
0042
0043 DEFINE_STANDARD_ALLOC
0044
0045 Standard_EXPORT BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox(const BRepAdaptor_Surface& S1, const BRepAdaptor_Surface& S2);
0046
0047 Standard_EXPORT Standard_Integer NbVariables() const;
0048
0049 Standard_EXPORT Standard_Integer NbEquations() const;
0050
0051 Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
0052
0053 Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
0054
0055 Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
0056
0057 Standard_EXPORT void ComputeParameters (const IntImp_ConstIsoparametric ChoixIso, const TColStd_Array1OfReal& Param, math_Vector& UVap, math_Vector& BornInf, math_Vector& BornSup, math_Vector& Tolerance);
0058
0059
0060 Standard_Real Root() const;
0061
0062 gp_Pnt Point() const;
0063
0064 Standard_EXPORT Standard_Boolean IsTangent (const math_Vector& UVap, TColStd_Array1OfReal& Param, IntImp_ConstIsoparametric& BestChoix);
0065
0066 gp_Dir Direction() const;
0067
0068 gp_Dir2d DirectionOnS1() const;
0069
0070 gp_Dir2d DirectionOnS2() const;
0071
0072 const BRepAdaptor_Surface& AuxillarSurface1() const;
0073
0074 const BRepAdaptor_Surface& AuxillarSurface2() const;
0075
0076
0077
0078
0079 protected:
0080
0081
0082
0083
0084
0085 private:
0086
0087
0088
0089 Standard_Address surf1;
0090 Standard_Address surf2;
0091 gp_Pnt pntsol1;
0092 gp_Pnt pntsol2;
0093 Standard_Real f[3];
0094 Standard_Boolean compute;
0095 Standard_Boolean tangent;
0096 Standard_Real tgduv[4];
0097 gp_Vec dpuv[4];
0098 IntImp_ConstIsoparametric chxIso;
0099 Standard_Real paramConst;
0100 Standard_Real ua0;
0101 Standard_Real va0;
0102 Standard_Real ua1;
0103 Standard_Real va1;
0104 Standard_Real ub0;
0105 Standard_Real vb0;
0106 Standard_Real ub1;
0107 Standard_Real vb1;
0108 Standard_Real ures1;
0109 Standard_Real ures2;
0110 Standard_Real vres1;
0111 Standard_Real vres2;
0112
0113
0114 };
0115
0116 #define ThePSurface BRepAdaptor_Surface
0117 #define ThePSurface_hxx <BRepAdaptor_Surface.hxx>
0118 #define ThePSurfaceTool BRepApprox_SurfaceTool
0119 #define ThePSurfaceTool_hxx <BRepApprox_SurfaceTool.hxx>
0120 #define IntImp_ZerParFunc BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox
0121 #define IntImp_ZerParFunc_hxx <BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox.hxx>
0122
0123 #include <IntImp_ZerParFunc.lxx>
0124
0125 #undef ThePSurface
0126 #undef ThePSurface_hxx
0127 #undef ThePSurfaceTool
0128 #undef ThePSurfaceTool_hxx
0129 #undef IntImp_ZerParFunc
0130 #undef IntImp_ZerParFunc_hxx
0131
0132
0133
0134
0135 #endif