0032969: Coding - get rid of unused headers [IMeshData to PLib]
[occt.git] / src / IntPatch / IntPatch_InterferencePolyhedron.hxx
1 // Created on: 1992-09-29
2 // Created by: Didier PIFFAULT
3 // Copyright (c) 1992-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 _IntPatch_InterferencePolyhedron_HeaderFile
18 #define _IntPatch_InterferencePolyhedron_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22
23 #include <Standard_Integer.hxx>
24 #include <gp_XYZ.hxx>
25 #include <Intf_Interference.hxx>
26 class IntPatch_Polyhedron;
27 class Intf_TangentZone;
28
29
30 //! Computes the  interference between two polyhedra or the
31 //! self interference of a polyhedron. Points of intersection,
32 //! polylines  of intersection and zones of tangence.
33 class IntPatch_InterferencePolyhedron  : public Intf_Interference
34 {
35 public:
36
37   DEFINE_STANDARD_ALLOC
38
39   
40   //! Constructs an empty interference of Polyhedron.
41   Standard_EXPORT IntPatch_InterferencePolyhedron();
42   
43   //! Constructs  and computes  an  interference between  the two
44   //! Polyhedra.
45   Standard_EXPORT IntPatch_InterferencePolyhedron(const IntPatch_Polyhedron& Obje1, const IntPatch_Polyhedron& Obje2);
46   
47   //! Constructs  and  computes   the self   interference  of   a
48   //! Polyhedron.
49   Standard_EXPORT IntPatch_InterferencePolyhedron(const IntPatch_Polyhedron& Obje);
50   
51   //! Computes the interference between the two Polyhedra.
52   Standard_EXPORT void Perform (const IntPatch_Polyhedron& Obje1, const IntPatch_Polyhedron& Obje2);
53   
54   //! Computes the self interference of a Polyhedron.
55   Standard_EXPORT void Perform (const IntPatch_Polyhedron& Obje);
56
57
58
59
60 protected:
61
62
63
64
65
66 private:
67
68   
69   Standard_EXPORT void Interference (const IntPatch_Polyhedron& Obje1);
70   
71   //! Compares the bounding volumes between the facets of <Obje1>
72   //! and the facets of <Obje2> and intersects the facets when the
73   //! bounding volumes have a common part.
74   Standard_EXPORT void Interference (const IntPatch_Polyhedron& Obje1, const IntPatch_Polyhedron& Obje2);
75   
76   //! Computes  the intersection between    the  facet <Tri1>  of
77   //! <FirstPol> and the facet <Tri2> of <SecondPol>.
78   Standard_EXPORT void Intersect (const Standard_Integer TriF, const IntPatch_Polyhedron& Obje1, const Standard_Integer TriS, const IntPatch_Polyhedron& Obje2);
79   
80   //! Computes the  zone of tangence between the  facet <Tri1> of
81   //! <FirstPol> and the facet <Tri2> of <SecondPol>.
82   Standard_EXPORT Standard_Boolean TangentZoneValue (Intf_TangentZone& TheTZ, const IntPatch_Polyhedron& Obje1, const Standard_Integer Tri1, const IntPatch_Polyhedron& Obje2, const Standard_Integer Tri2) const;
83   
84   Standard_EXPORT void CoupleCharacteristics (const IntPatch_Polyhedron& FirstPol, const IntPatch_Polyhedron& SeconPol);
85
86
87   Standard_Integer OI[3];
88   Standard_Integer TI[3];
89   Standard_Real dpOpT[3][3];
90   Standard_Real dpOeT[3][3];
91   Standard_Real deOpT[3][3];
92   gp_XYZ voo[3];
93   gp_XYZ vtt[3];
94   Standard_Real Incidence;
95
96
97 };
98
99
100
101
102
103
104
105 #endif // _IntPatch_InterferencePolyhedron_HeaderFile