Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1995-06-06
0002 // Created by: Jean Yves LEBEY
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 _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   //! returns somme des fi*fi
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 // _BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox_HeaderFile