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_TheImpPrmSvSurfacesOfWLApprox_HeaderFile
0018 #define _GeomInt_TheImpPrmSvSurfacesOfWLApprox_HeaderFile
0019 
0020 #include <Adaptor3d_Surface.hxx>
0021 #include <gp_Pnt2d.hxx>
0022 #include <gp_Pnt.hxx>
0023 #include <gp_Vec2d.hxx>
0024 #include <gp_Vec.hxx>
0025 #include <GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox.hxx>
0026 #include <ApproxInt_SvSurfaces.hxx>
0027 
0028 class Adaptor3d_HSurfaceTool;
0029 class IntSurf_Quadric;
0030 class IntSurf_QuadricTool;
0031 class IntPatch_WLine;
0032 class GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox;
0033 
0034 class GeomInt_TheImpPrmSvSurfacesOfWLApprox  : public ApproxInt_SvSurfaces
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   
0041   Standard_EXPORT GeomInt_TheImpPrmSvSurfacesOfWLApprox(const Handle(Adaptor3d_Surface)& Surf1, const IntSurf_Quadric& Surf2);
0042   
0043   Standard_EXPORT GeomInt_TheImpPrmSvSurfacesOfWLApprox(const IntSurf_Quadric& Surf1, const Handle(Adaptor3d_Surface)& Surf2);
0044   
0045   //! returns True if Tg,Tguv1 Tguv2 can be computed.
0046   Standard_EXPORT Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1, Standard_Real& u2, Standard_Real& v2,
0047                                             gp_Pnt& Pt, gp_Vec& Tg, gp_Vec2d& Tguv1, gp_Vec2d& Tguv2);
0048   
0049   Standard_EXPORT void Pnt (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Pnt& P);
0050   
0051   Standard_EXPORT Standard_Boolean SeekPoint(const Standard_Real u1,
0052                                              const Standard_Real v1,
0053                                              const Standard_Real u2,
0054                                              const Standard_Real v2,
0055                                              IntSurf_PntOn2S& Point);
0056   
0057   Standard_EXPORT Standard_Boolean Tangency (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec& Tg);
0058   
0059   Standard_EXPORT Standard_Boolean TangencyOnSurf1 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg);
0060   
0061   Standard_EXPORT Standard_Boolean TangencyOnSurf2 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg);
0062 
0063   Standard_Boolean FillInitialVectorOfSolution(const Standard_Real u1,
0064                                                const Standard_Real v1,
0065                                                const Standard_Real u2,
0066                                                const Standard_Real v2,
0067                                                const Standard_Real binfu,
0068                                                const Standard_Real bsupu,
0069                                                const Standard_Real binfv,
0070                                                const Standard_Real bsupv,
0071                                                math_Vector& X,
0072                                                Standard_Real& TranslationU,
0073                                                Standard_Real& TranslationV);
0074 
0075 
0076 protected:
0077 
0078 
0079 
0080 
0081 
0082 private:
0083 
0084 
0085 
0086   gp_Pnt2d MyParOnS1;
0087   gp_Pnt2d MyParOnS2;
0088   gp_Pnt MyPnt;
0089   gp_Vec2d MyTguv1;
0090   gp_Vec2d MyTguv2;
0091   gp_Vec MyTg;
0092   Standard_Boolean MyIsTangent;
0093   Standard_Boolean MyHasBeenComputed;
0094   gp_Pnt2d MyParOnS1bis;
0095   gp_Pnt2d MyParOnS2bis;
0096   gp_Pnt MyPntbis;
0097   gp_Vec2d MyTguv1bis;
0098   gp_Vec2d MyTguv2bis;
0099   gp_Vec MyTgbis;
0100   Standard_Boolean MyIsTangentbis;
0101   Standard_Boolean MyHasBeenComputedbis;
0102   Standard_Boolean MyImplicitFirst;
0103   GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox MyZerImpFunc;
0104 
0105 
0106 };
0107 
0108 
0109 
0110 
0111 
0112 
0113 
0114 #endif // _GeomInt_TheImpPrmSvSurfacesOfWLApprox_HeaderFile