Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-21 08:29:34

0001 // Created on: 1995-06-14
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1995-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 _TopOpeBRep_FaceEdgeFiller_HeaderFile
0018 #define _TopOpeBRep_FaceEdgeFiller_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Integer.hxx>
0025 #include <TopOpeBRepDS_ListOfInterference.hxx>
0026 class TopoDS_Shape;
0027 class TopOpeBRep_FaceEdgeIntersector;
0028 class TopOpeBRepDS_HDataStructure;
0029 class TopOpeBRepDS_Point;
0030 class TopOpeBRepDS_DataStructure;
0031 class TopOpeBRepDS_Interference;
0032 
0033 class TopOpeBRep_FaceEdgeFiller
0034 {
0035 public:
0036   DEFINE_STANDARD_ALLOC
0037 
0038   Standard_EXPORT TopOpeBRep_FaceEdgeFiller();
0039 
0040   Standard_EXPORT void Insert(const TopoDS_Shape&                        F,
0041                               const TopoDS_Shape&                        E,
0042                               TopOpeBRep_FaceEdgeIntersector&            FEINT,
0043                               const Handle(TopOpeBRepDS_HDataStructure)& HDS);
0044 
0045 protected:
0046 private:
0047   //! Search, among a list of interferences accessed by the iterator
0048   //! <IT>, a geometry <G> whose 3D point is identical to the 3D point
0049   //! of the TheDSPoint <DSP>.
0050   //! returns True if such an interference has been found, False else.
0051   //! if True, iterator It points (by the Value() method) on the first
0052   //! interference accessing an identical 3D point.
0053   Standard_EXPORT Standard_Boolean ScanInterfList(TopOpeBRepDS_ListIteratorOfListOfInterference& IT,
0054                                                   const TopOpeBRepDS_Point&         DSP,
0055                                                   const TopOpeBRepDS_DataStructure& BDS) const;
0056 
0057   //! Search for an interference in list <IT> which 3D geometry
0058   //! equals 3D geometry of the current intersection of <EI>.
0059   //! The search is performed by ScanInterfList.
0060   //! if found, set <G> to the geometry of the interference found.
0061   //! returns found.
0062   Standard_EXPORT Standard_Boolean GetGeometry(TopOpeBRepDS_ListIteratorOfListOfInterference& IT,
0063                                                const TopOpeBRep_FaceEdgeIntersector&          EI,
0064                                                Standard_Integer&                              G,
0065                                                const TopOpeBRepDS_DataStructure& DS) const;
0066 
0067   Standard_EXPORT Standard_Integer MakeGeometry(TopOpeBRep_FaceEdgeIntersector& EI,
0068                                                 TopOpeBRepDS_DataStructure&     DS) const;
0069 
0070   //! Get the geometry of a DS point <DSP>.
0071   //! First, search it with ScanInterfList (previous method).
0072   //! if found, set <G> to the geometry of the interference found.
0073   //! else, add the point <DSP> in the <DS> and set <G> to the
0074   //! value of the new geometry such created.
0075   //!
0076   //! returns the value of ScanInterfList().
0077   Standard_EXPORT Standard_Boolean GetGeometry(const TopOpeBRepDS_ListOfInterference& L,
0078                                                const TopOpeBRepDS_Point&              DSP,
0079                                                Standard_Integer&                      G,
0080                                                TopOpeBRepDS_DataStructure&            DS) const;
0081 
0082   //! Add interference <I> to list <LI>.
0083   //! Add <I> to the interference list of <I> geometry (via <BDS>).
0084   Standard_EXPORT void StoreInterference(const Handle(TopOpeBRepDS_Interference)& I,
0085                                          TopOpeBRepDS_ListOfInterference&         LI,
0086                                          TopOpeBRepDS_DataStructure&              BDS) const;
0087 };
0088 
0089 #endif // _TopOpeBRep_FaceEdgeFiller_HeaderFile