Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-17 09:21:09

0001 // Created on: 1991-03-28
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1991-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
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 <NCollection_Array1.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   DEFINE_STANDARD_ALLOC
0037 
0038   Standard_EXPORT IntWalk_TheFunctionOfTheInt2S(const occ::handle<Adaptor3d_Surface>& S1,
0039                                                 const occ::handle<Adaptor3d_Surface>& S2);
0040 
0041   Standard_EXPORT int NbVariables() const override;
0042 
0043   Standard_EXPORT int NbEquations() const override;
0044 
0045   Standard_EXPORT bool Value(const math_Vector& X, math_Vector& F) override;
0046 
0047   Standard_EXPORT bool Derivatives(const math_Vector& X, math_Matrix& D) override;
0048 
0049   Standard_EXPORT bool Values(const math_Vector& X, math_Vector& F, math_Matrix& D) override;
0050 
0051   Standard_EXPORT void ComputeParameters(const IntImp_ConstIsoparametric   ChoixIso,
0052                                          const NCollection_Array1<double>& Param,
0053                                          math_Vector&                      UVap,
0054                                          math_Vector&                      BornInf,
0055                                          math_Vector&                      BornSup,
0056                                          math_Vector&                      Tolerance);
0057 
0058   //! returns somme des fi*fi
0059   double Root() const;
0060 
0061   gp_Pnt Point() const;
0062 
0063   Standard_EXPORT bool IsTangent(const math_Vector&          UVap,
0064                                  NCollection_Array1<double>& Param,
0065                                  IntImp_ConstIsoparametric&  BestChoix);
0066 
0067   gp_Dir Direction() const;
0068 
0069   gp_Dir2d DirectionOnS1() const;
0070 
0071   gp_Dir2d DirectionOnS2() const;
0072 
0073   const occ::handle<Adaptor3d_Surface>& AuxillarSurface1() const;
0074 
0075   const occ::handle<Adaptor3d_Surface>& AuxillarSurface2() const;
0076 
0077 private:
0078   void*                     surf1;
0079   void*                     surf2;
0080   gp_Pnt                    pntsol1;
0081   gp_Pnt                    pntsol2;
0082   double                    f[3];
0083   bool                      compute;
0084   bool                      tangent;
0085   double                    tgduv[4];
0086   gp_Vec                    dpuv[4];
0087   IntImp_ConstIsoparametric chxIso;
0088   double                    paramConst;
0089   double                    ua0;
0090   double                    va0;
0091   double                    ua1;
0092   double                    va1;
0093   double                    ub0;
0094   double                    vb0;
0095   double                    ub1;
0096   double                    vb1;
0097   double                    ures1;
0098   double                    ures2;
0099   double                    vres1;
0100   double                    vres2;
0101 };
0102 
0103 #define ThePSurface occ::handle<Adaptor3d_Surface>
0104 #define ThePSurface_hxx <Adaptor3d_Surface.hxx>
0105 #define ThePSurfaceTool Adaptor3d_HSurfaceTool
0106 #define ThePSurfaceTool_hxx <Adaptor3d_HSurfaceTool.hxx>
0107 #define IntImp_ZerParFunc IntWalk_TheFunctionOfTheInt2S
0108 #define IntImp_ZerParFunc_hxx <IntWalk_TheFunctionOfTheInt2S.hxx>
0109 
0110 #include <IntImp_ZerParFunc.lxx>
0111 
0112 #undef ThePSurface
0113 #undef ThePSurface_hxx
0114 #undef ThePSurfaceTool
0115 #undef ThePSurfaceTool_hxx
0116 #undef IntImp_ZerParFunc
0117 #undef IntImp_ZerParFunc_hxx
0118 
0119 #endif // _IntWalk_TheFunctionOfTheInt2S_HeaderFile