42cf5bc1 |
1 | // Created on: 1993-03-17 |
2 | // Created by: Laurent BUCHARD |
3 | // Copyright (c) 1993-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _ApproxInt_SvSurfaces_HeaderFile |
18 | #define _ApproxInt_SvSurfaces_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Boolean.hxx> |
25 | #include <Standard_Real.hxx> |
26 | class gp_Pnt; |
27 | class gp_Vec; |
28 | class gp_Vec2d; |
2c26a53d |
29 | class IntSurf_PntOn2S; |
42cf5bc1 |
30 | |
31 | |
32 | class ApproxInt_SvSurfaces |
33 | { |
34 | public: |
35 | |
36 | DEFINE_STANDARD_ALLOC |
37 | |
38 | |
39 | //! returns True if Tg,Tguv1 Tguv2 can be computed. |
2c26a53d |
40 | Standard_EXPORT virtual Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1, |
41 | Standard_Real& u2, Standard_Real& v2, |
42 | gp_Pnt& Pt, |
43 | gp_Vec& Tg, |
44 | gp_Vec2d& Tguv1, |
45 | gp_Vec2d& Tguv2) = 0; |
42cf5bc1 |
46 | |
2c26a53d |
47 | Standard_EXPORT virtual void Pnt (const Standard_Real u1, const Standard_Real v1, |
48 | const Standard_Real u2, const Standard_Real v2, |
49 | gp_Pnt& P) = 0; |
50 | |
51 | //! computes point on curve and parameters on the surfaces |
52 | Standard_EXPORT virtual Standard_Boolean SeekPoint(const Standard_Real u1, const Standard_Real v1, |
53 | const Standard_Real u2, const Standard_Real v2, |
54 | IntSurf_PntOn2S& Point) = 0; |
42cf5bc1 |
55 | |
2c26a53d |
56 | Standard_EXPORT virtual Standard_Boolean Tangency (const Standard_Real u1, const Standard_Real v1, |
57 | const Standard_Real u2, const Standard_Real v2, |
58 | gp_Vec& Tg) = 0; |
42cf5bc1 |
59 | |
2c26a53d |
60 | Standard_EXPORT virtual Standard_Boolean TangencyOnSurf1 (const Standard_Real u1, |
61 | const Standard_Real v1, |
62 | const Standard_Real u2, |
63 | const Standard_Real v2, |
64 | gp_Vec2d& Tg) = 0; |
42cf5bc1 |
65 | |
2c26a53d |
66 | Standard_EXPORT virtual Standard_Boolean TangencyOnSurf2 (const Standard_Real u1, |
67 | const Standard_Real v1, |
68 | const Standard_Real u2, |
69 | const Standard_Real v2, |
70 | gp_Vec2d& Tg) = 0; |
42cf5bc1 |
71 | Standard_EXPORT virtual ~ApproxInt_SvSurfaces(); |
72 | |
73 | |
74 | |
75 | |
76 | protected: |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | private: |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | }; |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | #endif // _ApproxInt_SvSurfaces_HeaderFile |