Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:52

0001 // Created on: 1992-10-14
0002 // Created by: Christophe MARION
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 _HLRBRep_TheInterferenceOfInterCSurf_HeaderFile
0018 #define _HLRBRep_TheInterferenceOfInterCSurf_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Boolean.hxx>
0025 #include <Intf_Interference.hxx>
0026 #include <Intf_Array1OfLin.hxx>
0027 class HLRBRep_ThePolygonOfInterCSurf;
0028 class HLRBRep_ThePolygonToolOfInterCSurf;
0029 class HLRBRep_ThePolyhedronOfInterCSurf;
0030 class HLRBRep_ThePolyhedronToolOfInterCSurf;
0031 class gp_Lin;
0032 class Bnd_BoundSortBox;
0033 class gp_Pnt;
0034 class gp_XYZ;
0035 
0036 
0037 
0038 class HLRBRep_TheInterferenceOfInterCSurf  : public Intf_Interference
0039 {
0040 public:
0041 
0042   DEFINE_STANDARD_ALLOC
0043 
0044   
0045   //! Constructs  an  empty   interference  between Polygon   and
0046   //! Polyhedron.
0047   Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf();
0048   
0049   //! Constructs and computes an interference between the Polygon
0050   //! and the Polyhedron.
0051   Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
0052   
0053   //! Constructs  and computes  an  interference   between    the
0054   //! Straight Line and the Polyhedron.
0055   Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const gp_Lin& theLin, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
0056   
0057   //! Constructs   and   computes  an  interference   between the
0058   //! Straight Lines and the Polyhedron.
0059   Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const Intf_Array1OfLin& theLins, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
0060   
0061   //! Computes  an interference    between the   Polygon  and the
0062   //! Polyhedron.
0063   Standard_EXPORT void Perform (const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
0064   
0065   //! Computes an interference between the Straight  Line and the
0066   //! Polyhedron.
0067   Standard_EXPORT void Perform (const gp_Lin& theLin, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
0068   
0069   //! Computes an interference  between the  Straight Lines  and
0070   //! the Polyhedron.
0071   Standard_EXPORT void Perform (const Intf_Array1OfLin& theLins, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
0072   
0073   //! Constructs and computes an interference between the Polygon
0074   //! and the Polyhedron.
0075   Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
0076   
0077   //! Constructs  and computes  an  interference   between    the
0078   //! Straight Line and the Polyhedron.
0079   Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const gp_Lin& theLin, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
0080   
0081   //! Constructs   and   computes  an  interference   between the
0082   //! Straight Lines and the Polyhedron.
0083   Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const Intf_Array1OfLin& theLins, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
0084   
0085   //! Computes  an interference    between the   Polygon  and the
0086   //! Polyhedron.
0087   Standard_EXPORT void Perform (const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
0088   
0089   //! Computes an interference between the Straight  Line and the
0090   //! Polyhedron.
0091   Standard_EXPORT void Perform (const gp_Lin& theLin, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
0092   
0093   //! Computes an interference  between the  Straight Lines  and
0094   //! the Polyhedron.
0095   Standard_EXPORT void Perform (const Intf_Array1OfLin& theLins, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
0096   
0097   //! Compares the boundings between the segment of <thePolyg> and
0098   //! the facets of <thePolyh>.
0099   Standard_EXPORT void Interference (const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
0100   
0101   //! Compares the boundings between the segment of <thePolyg> and
0102   //! the facets of <thePolyh>.
0103   Standard_EXPORT void Interference (const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
0104 
0105 
0106 
0107 
0108 protected:
0109 
0110 
0111 
0112 
0113 
0114 private:
0115 
0116   
0117   //! Computes the intersection between  the segment <BegO><EndO>
0118   //! and the triangle <TTri> of <thePolyh>.
0119   Standard_EXPORT void Intersect (const gp_Pnt& BegO, const gp_Pnt& EndO, const Standard_Boolean Infinite, const Standard_Integer TTri, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
0120   
0121   //! Computes the intersection between  the segment <BegO><EndO>
0122   //! and the triangle <TTri> of <thePolyh>.
0123   Standard_EXPORT void Intersect (const gp_Pnt& BegO, const gp_Pnt& EndO, const Standard_Boolean Infinite, const Standard_Integer TTri, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const gp_XYZ& TriNormal, const Standard_Real TriDp, const Standard_Real dBegTri, const Standard_Real dEndTri);
0124 
0125 
0126   Standard_Boolean BeginOfClosedPolygon;
0127   Standard_Integer iLin;
0128 
0129 
0130 };
0131 
0132 
0133 
0134 
0135 
0136 
0137 
0138 #endif // _HLRBRep_TheInterferenceOfInterCSurf_HeaderFile