Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:41

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