42cf5bc1 |
1 | // Created on: 1995-01-27 |
2 | // Created by: Jacques GOUSSARD |
3 | // Copyright (c) 1995-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 _GeomInt_ThePrmPrmSvSurfacesOfWLApprox_HeaderFile |
18 | #define _GeomInt_ThePrmPrmSvSurfacesOfWLApprox_HeaderFile |
19 | |
c22b52d6 |
20 | #include <Adaptor3d_Surface.hxx> |
42cf5bc1 |
21 | #include <gp_Pnt2d.hxx> |
22 | #include <gp_Pnt.hxx> |
23 | #include <gp_Vec2d.hxx> |
24 | #include <gp_Vec.hxx> |
42cf5bc1 |
25 | #include <GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox.hxx> |
26 | #include <ApproxInt_SvSurfaces.hxx> |
c22b52d6 |
27 | |
42cf5bc1 |
28 | class Adaptor3d_HSurfaceTool; |
29 | class IntPatch_WLine; |
30 | class GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox; |
31 | class GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox; |
42cf5bc1 |
32 | |
33 | class GeomInt_ThePrmPrmSvSurfacesOfWLApprox : public ApproxInt_SvSurfaces |
34 | { |
35 | public: |
36 | |
37 | DEFINE_STANDARD_ALLOC |
38 | |
39 | |
c22b52d6 |
40 | Standard_EXPORT GeomInt_ThePrmPrmSvSurfacesOfWLApprox(const Handle(Adaptor3d_Surface)& Surf1, const Handle(Adaptor3d_Surface)& Surf2); |
42cf5bc1 |
41 | |
36b9ff75 |
42 | //! returns True if Tg,Tguv1 Tguv2 can be computed. |
2c26a53d |
43 | Standard_EXPORT Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1, Standard_Real& u2, Standard_Real& v2, |
44 | gp_Pnt& Pt, gp_Vec& Tg, gp_Vec2d& Tguv1, gp_Vec2d& Tguv2); |
42cf5bc1 |
45 | |
46 | Standard_EXPORT void Pnt (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Pnt& P); |
47 | |
2c26a53d |
48 | Standard_EXPORT Standard_Boolean SeekPoint(const Standard_Real u1, |
49 | const Standard_Real v1, |
50 | const Standard_Real u2, |
51 | const Standard_Real v2, |
52 | IntSurf_PntOn2S& Point); |
53 | |
42cf5bc1 |
54 | Standard_EXPORT Standard_Boolean Tangency (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec& Tg); |
55 | |
56 | Standard_EXPORT Standard_Boolean TangencyOnSurf1 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg); |
57 | |
58 | Standard_EXPORT Standard_Boolean TangencyOnSurf2 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg); |
59 | |
60 | |
61 | |
62 | |
63 | protected: |
64 | |
65 | |
66 | |
67 | |
68 | |
69 | private: |
70 | |
71 | |
72 | |
73 | gp_Pnt2d MyParOnS1; |
74 | gp_Pnt2d MyParOnS2; |
75 | gp_Pnt MyPnt; |
76 | gp_Vec2d MyTguv1; |
77 | gp_Vec2d MyTguv2; |
78 | gp_Vec MyTg; |
79 | Standard_Boolean MyIsTangent; |
80 | Standard_Boolean MyHasBeenComputed; |
81 | gp_Pnt2d MyParOnS1bis; |
82 | gp_Pnt2d MyParOnS2bis; |
83 | gp_Pnt MyPntbis; |
84 | gp_Vec2d MyTguv1bis; |
85 | gp_Vec2d MyTguv2bis; |
86 | gp_Vec MyTgbis; |
87 | Standard_Boolean MyIsTangentbis; |
88 | Standard_Boolean MyHasBeenComputedbis; |
89 | GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox MyIntersectionOn2S; |
90 | |
91 | |
92 | }; |
93 | |
94 | |
95 | |
96 | |
97 | |
98 | |
99 | |
100 | #endif // _GeomInt_ThePrmPrmSvSurfacesOfWLApprox_HeaderFile |