Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-19 09:29:44

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_Interference.hxx>
0026 #include <NCollection_List.hxx>
0027 class TopoDS_Shape;
0028 class TopOpeBRep_FaceEdgeIntersector;
0029 class TopOpeBRepDS_HDataStructure;
0030 class TopOpeBRepDS_Point;
0031 class TopOpeBRepDS_DataStructure;
0032 class TopOpeBRepDS_Interference;
0033 
0034 class TopOpeBRep_FaceEdgeFiller
0035 {
0036 public:
0037   DEFINE_STANDARD_ALLOC
0038 
0039   Standard_EXPORT TopOpeBRep_FaceEdgeFiller();
0040 
0041   Standard_EXPORT void Insert(const TopoDS_Shape&                             F,
0042                               const TopoDS_Shape&                             E,
0043                               TopOpeBRep_FaceEdgeIntersector&                 FEINT,
0044                               const occ::handle<TopOpeBRepDS_HDataStructure>& HDS);
0045 
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 bool ScanInterfList(
0054     NCollection_List<occ::handle<TopOpeBRepDS_Interference>>::Iterator& IT,
0055     const TopOpeBRepDS_Point&                                           DSP,
0056     const TopOpeBRepDS_DataStructure&                                   BDS) const;
0057 
0058   //! Search for an interference in list <IT> which 3D geometry
0059   //! equals 3D geometry of the current intersection of <EI>.
0060   //! The search is performed by ScanInterfList.
0061   //! if found, set <G> to the geometry of the interference found.
0062   //! returns found.
0063   Standard_EXPORT bool GetGeometry(
0064     NCollection_List<occ::handle<TopOpeBRepDS_Interference>>::Iterator& IT,
0065     const TopOpeBRep_FaceEdgeIntersector&                               EI,
0066     int&                                                                G,
0067     const TopOpeBRepDS_DataStructure&                                   DS) const;
0068 
0069   Standard_EXPORT int MakeGeometry(TopOpeBRep_FaceEdgeIntersector& EI,
0070                                    TopOpeBRepDS_DataStructure&     DS) const;
0071 
0072   //! Get the geometry of a DS point <DSP>.
0073   //! First, search it with ScanInterfList (previous method).
0074   //! if found, set <G> to the geometry of the interference found.
0075   //! else, add the point <DSP> in the <DS> and set <G> to the
0076   //! value of the new geometry such created.
0077   //!
0078   //! returns the value of ScanInterfList().
0079   Standard_EXPORT bool GetGeometry(
0080     const NCollection_List<occ::handle<TopOpeBRepDS_Interference>>& L,
0081     const TopOpeBRepDS_Point&                                       DSP,
0082     int&                                                            G,
0083     TopOpeBRepDS_DataStructure&                                     DS) const;
0084 
0085   //! Add interference <I> to list <LI>.
0086   //! Add <I> to the interference list of <I> geometry (via <BDS>).
0087   Standard_EXPORT void StoreInterference(
0088     const occ::handle<TopOpeBRepDS_Interference>&             I,
0089     NCollection_List<occ::handle<TopOpeBRepDS_Interference>>& LI,
0090     TopOpeBRepDS_DataStructure&                               BDS) const;
0091 };
0092 
0093 #endif // _TopOpeBRep_FaceEdgeFiller_HeaderFile