Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:09

0001 // Created on: 1992-09-29
0002 // Created by: Didier PIFFAULT
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IntPatch_InterferencePolyhedron_HeaderFile
0018 #define _IntPatch_InterferencePolyhedron_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <gp_XYZ.hxx>
0025 #include <Intf_Interference.hxx>
0026 class IntPatch_Polyhedron;
0027 class Intf_TangentZone;
0028 
0029 
0030 //! Computes the  interference between two polyhedra or the
0031 //! self interference of a polyhedron. Points of intersection,
0032 //! polylines  of intersection and zones of tangence.
0033 class IntPatch_InterferencePolyhedron  : public Intf_Interference
0034 {
0035 public:
0036 
0037   DEFINE_STANDARD_ALLOC
0038 
0039   
0040   //! Constructs an empty interference of Polyhedron.
0041   Standard_EXPORT IntPatch_InterferencePolyhedron();
0042   
0043   //! Constructs  and computes  an  interference between  the two
0044   //! Polyhedra.
0045   Standard_EXPORT IntPatch_InterferencePolyhedron(const IntPatch_Polyhedron& Obje1, const IntPatch_Polyhedron& Obje2);
0046   
0047   //! Constructs  and  computes   the self   interference  of   a
0048   //! Polyhedron.
0049   Standard_EXPORT IntPatch_InterferencePolyhedron(const IntPatch_Polyhedron& Obje);
0050   
0051   //! Computes the interference between the two Polyhedra.
0052   Standard_EXPORT void Perform (const IntPatch_Polyhedron& Obje1, const IntPatch_Polyhedron& Obje2);
0053   
0054   //! Computes the self interference of a Polyhedron.
0055   Standard_EXPORT void Perform (const IntPatch_Polyhedron& Obje);
0056 
0057 
0058 
0059 
0060 protected:
0061 
0062 
0063 
0064 
0065 
0066 private:
0067 
0068   
0069   Standard_EXPORT void Interference (const IntPatch_Polyhedron& Obje1);
0070   
0071   //! Compares the bounding volumes between the facets of <Obje1>
0072   //! and the facets of <Obje2> and intersects the facets when the
0073   //! bounding volumes have a common part.
0074   Standard_EXPORT void Interference (const IntPatch_Polyhedron& Obje1, const IntPatch_Polyhedron& Obje2);
0075   
0076   //! Computes  the intersection between    the  facet <Tri1>  of
0077   //! <FirstPol> and the facet <Tri2> of <SecondPol>.
0078   Standard_EXPORT void Intersect (const Standard_Integer TriF, const IntPatch_Polyhedron& Obje1, const Standard_Integer TriS, const IntPatch_Polyhedron& Obje2);
0079   
0080   //! Computes the  zone of tangence between the  facet <Tri1> of
0081   //! <FirstPol> and the facet <Tri2> of <SecondPol>.
0082   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;
0083   
0084   Standard_EXPORT void CoupleCharacteristics (const IntPatch_Polyhedron& FirstPol, const IntPatch_Polyhedron& SeconPol);
0085 
0086 
0087   Standard_Integer OI[3];
0088   Standard_Integer TI[3];
0089   Standard_Real dpOpT[3][3];
0090   Standard_Real dpOeT[3][3];
0091   Standard_Real deOpT[3][3];
0092   gp_XYZ voo[3];
0093   gp_XYZ vtt[3];
0094   Standard_Real Incidence;
0095 
0096 
0097 };
0098 
0099 
0100 
0101 
0102 
0103 
0104 
0105 #endif // _IntPatch_InterferencePolyhedron_HeaderFile