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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IntPatch_InterferencePolyhedron_HeaderFile
18 #define _IntPatch_InterferencePolyhedron_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
23 #include <Standard_Integer.hxx>
25 #include <Intf_Interference.hxx>
26 class IntPatch_Polyhedron;
27 class Intf_TangentZone;
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
40 //! Constructs an empty interference of Polyhedron.
41 Standard_EXPORT IntPatch_InterferencePolyhedron();
43 //! Constructs and computes an interference between the two
45 Standard_EXPORT IntPatch_InterferencePolyhedron(const IntPatch_Polyhedron& Obje1, const IntPatch_Polyhedron& Obje2);
47 //! Constructs and computes the self interference of a
49 Standard_EXPORT IntPatch_InterferencePolyhedron(const IntPatch_Polyhedron& Obje);
51 //! Computes the interference between the two Polyhedra.
52 Standard_EXPORT void Perform (const IntPatch_Polyhedron& Obje1, const IntPatch_Polyhedron& Obje2);
54 //! Computes the self interference of a Polyhedron.
55 Standard_EXPORT void Perform (const IntPatch_Polyhedron& Obje);
69 Standard_EXPORT void Interference (const IntPatch_Polyhedron& Obje1);
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);
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);
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;
84 Standard_EXPORT void CoupleCharacteristics (const IntPatch_Polyhedron& FirstPol, const IntPatch_Polyhedron& SeconPol);
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];
94 Standard_Real Incidence;
105 #endif // _IntPatch_InterferencePolyhedron_HeaderFile