Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-02 09:23:38

0001 // Created on: 1993-04-07
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1993-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 _IntCurveSurface_TheInterferenceOfHInter_HeaderFile
0018 #define _IntCurveSurface_TheInterferenceOfHInter_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 IntCurveSurface_ThePolygonOfHInter;
0028 class IntCurveSurface_ThePolygonToolOfHInter;
0029 class IntCurveSurface_ThePolyhedronOfHInter;
0030 class IntCurveSurface_ThePolyhedronToolOfHInter;
0031 class gp_Lin;
0032 class Bnd_BoundSortBox;
0033 class gp_Pnt;
0034 class gp_XYZ;
0035 
0036 class IntCurveSurface_TheInterferenceOfHInter : public Intf_Interference
0037 {
0038 public:
0039   DEFINE_STANDARD_ALLOC
0040 
0041   //! Constructs  an  empty   interference  between Polygon   and
0042   //! Polyhedron.
0043   Standard_EXPORT IntCurveSurface_TheInterferenceOfHInter();
0044 
0045   //! Constructs and computes an interference between the Polygon
0046   //! and the Polyhedron.
0047   Standard_EXPORT IntCurveSurface_TheInterferenceOfHInter(
0048     const IntCurveSurface_ThePolygonOfHInter&    thePolyg,
0049     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0050 
0051   //! Constructs  and computes  an  interference   between    the
0052   //! Straight Line and the Polyhedron.
0053   Standard_EXPORT IntCurveSurface_TheInterferenceOfHInter(
0054     const gp_Lin&                                theLin,
0055     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0056 
0057   //! Constructs   and   computes  an  interference   between the
0058   //! Straight Lines and the Polyhedron.
0059   Standard_EXPORT IntCurveSurface_TheInterferenceOfHInter(
0060     const Intf_Array1OfLin&                      theLins,
0061     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0062 
0063   //! Computes  an interference    between the   Polygon  and the
0064   //! Polyhedron.
0065   Standard_EXPORT void Perform(const IntCurveSurface_ThePolygonOfHInter&    thePolyg,
0066                                const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0067 
0068   //! Computes an interference between the Straight  Line and the
0069   //! Polyhedron.
0070   Standard_EXPORT void Perform(const gp_Lin&                                theLin,
0071                                const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0072 
0073   //! Computes an interference  between the  Straight Lines  and
0074   //! the Polyhedron.
0075   Standard_EXPORT void Perform(const Intf_Array1OfLin&                      theLins,
0076                                const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0077 
0078   //! Constructs and computes an interference between the Polygon
0079   //! and the Polyhedron.
0080   Standard_EXPORT IntCurveSurface_TheInterferenceOfHInter(
0081     const IntCurveSurface_ThePolygonOfHInter&    thePolyg,
0082     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0083     Bnd_BoundSortBox&                            theBoundSB);
0084 
0085   //! Constructs  and computes  an  interference   between    the
0086   //! Straight Line and the Polyhedron.
0087   Standard_EXPORT IntCurveSurface_TheInterferenceOfHInter(
0088     const gp_Lin&                                theLin,
0089     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0090     Bnd_BoundSortBox&                            theBoundSB);
0091 
0092   //! Constructs   and   computes  an  interference   between the
0093   //! Straight Lines and the Polyhedron.
0094   Standard_EXPORT IntCurveSurface_TheInterferenceOfHInter(
0095     const Intf_Array1OfLin&                      theLins,
0096     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0097     Bnd_BoundSortBox&                            theBoundSB);
0098 
0099   //! Computes  an interference    between the   Polygon  and the
0100   //! Polyhedron.
0101   Standard_EXPORT void Perform(const IntCurveSurface_ThePolygonOfHInter&    thePolyg,
0102                                const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0103                                Bnd_BoundSortBox&                            theBoundSB);
0104 
0105   //! Computes an interference between the Straight  Line and the
0106   //! Polyhedron.
0107   Standard_EXPORT void Perform(const gp_Lin&                                theLin,
0108                                const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0109                                Bnd_BoundSortBox&                            theBoundSB);
0110 
0111   //! Computes an interference  between the  Straight Lines  and
0112   //! the Polyhedron.
0113   Standard_EXPORT void Perform(const Intf_Array1OfLin&                      theLins,
0114                                const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0115                                Bnd_BoundSortBox&                            theBoundSB);
0116 
0117   //! Compares the boundings between the segment of <thePolyg> and
0118   //! the facets of <thePolyh>.
0119   Standard_EXPORT void Interference(const IntCurveSurface_ThePolygonOfHInter&    thePolyg,
0120                                     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0121                                     Bnd_BoundSortBox&                            theBoundSB);
0122 
0123   //! Compares the boundings between the segment of <thePolyg> and
0124   //! the facets of <thePolyh>.
0125   Standard_EXPORT void Interference(const IntCurveSurface_ThePolygonOfHInter&    thePolyg,
0126                                     const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0127 
0128 protected:
0129 private:
0130   //! Computes the intersection between  the segment <BegO><EndO>
0131   //! and the triangle <TTri> of <thePolyh>.
0132   Standard_EXPORT void Intersect(const gp_Pnt&                                BegO,
0133                                  const gp_Pnt&                                EndO,
0134                                  const Standard_Boolean                       Infinite,
0135                                  const Standard_Integer                       TTri,
0136                                  const IntCurveSurface_ThePolyhedronOfHInter& thePolyh);
0137 
0138   //! Computes the intersection between  the segment <BegO><EndO>
0139   //! and the triangle <TTri> of <thePolyh>.
0140   Standard_EXPORT void Intersect(const gp_Pnt&                                BegO,
0141                                  const gp_Pnt&                                EndO,
0142                                  const Standard_Boolean                       Infinite,
0143                                  const Standard_Integer                       TTri,
0144                                  const IntCurveSurface_ThePolyhedronOfHInter& thePolyh,
0145                                  const gp_XYZ&                                TriNormal,
0146                                  const Standard_Real                          TriDp,
0147                                  const Standard_Real                          dBegTri,
0148                                  const Standard_Real                          dEndTri);
0149 
0150   Standard_Boolean BeginOfClosedPolygon;
0151   Standard_Integer iLin;
0152 };
0153 
0154 #endif // _IntCurveSurface_TheInterferenceOfHInter_HeaderFile