File indexing completed on 2024-11-15 09:45:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ApproxInt_SvSurfaces_HeaderFile
0018 #define _ApproxInt_SvSurfaces_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Boolean.hxx>
0025 #include <Standard_Real.hxx>
0026 class gp_Pnt;
0027 class gp_Vec;
0028 class gp_Vec2d;
0029 class IntSurf_PntOn2S;
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041 class ApproxInt_SvSurfaces
0042 {
0043 public:
0044
0045 DEFINE_STANDARD_ALLOC
0046
0047 ApproxInt_SvSurfaces() : myUseSolver (false) {}
0048
0049
0050 Standard_EXPORT virtual Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1,
0051 Standard_Real& u2, Standard_Real& v2,
0052 gp_Pnt& Pt,
0053 gp_Vec& Tg,
0054 gp_Vec2d& Tguv1,
0055 gp_Vec2d& Tguv2) = 0;
0056
0057 Standard_EXPORT virtual void Pnt (const Standard_Real u1, const Standard_Real v1,
0058 const Standard_Real u2, const Standard_Real v2,
0059 gp_Pnt& P) = 0;
0060
0061
0062 Standard_EXPORT virtual Standard_Boolean SeekPoint(const Standard_Real u1, const Standard_Real v1,
0063 const Standard_Real u2, const Standard_Real v2,
0064 IntSurf_PntOn2S& Point) = 0;
0065
0066 Standard_EXPORT virtual Standard_Boolean Tangency (const Standard_Real u1, const Standard_Real v1,
0067 const Standard_Real u2, const Standard_Real v2,
0068 gp_Vec& Tg) = 0;
0069
0070 Standard_EXPORT virtual Standard_Boolean TangencyOnSurf1 (const Standard_Real u1,
0071 const Standard_Real v1,
0072 const Standard_Real u2,
0073 const Standard_Real v2,
0074 gp_Vec2d& Tg) = 0;
0075
0076 Standard_EXPORT virtual Standard_Boolean TangencyOnSurf2 (const Standard_Real u1,
0077 const Standard_Real v1,
0078 const Standard_Real u2,
0079 const Standard_Real v2,
0080 gp_Vec2d& Tg) = 0;
0081 Standard_EXPORT virtual ~ApproxInt_SvSurfaces();
0082
0083 void SetUseSolver (const Standard_Boolean theUseSol)
0084 {
0085 myUseSolver = theUseSol;
0086 }
0087
0088 virtual Standard_Boolean GetUseSolver() const
0089 {
0090 return myUseSolver;
0091 }
0092
0093 private:
0094
0095 Standard_Boolean myUseSolver;
0096
0097 };
0098
0099 #endif