Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:24

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 
0034 
0035 class TopOpeBRep_FaceEdgeFiller 
0036 {
0037 public:
0038 
0039   DEFINE_STANDARD_ALLOC
0040 
0041   
0042   Standard_EXPORT TopOpeBRep_FaceEdgeFiller();
0043   
0044   Standard_EXPORT void Insert (const TopoDS_Shape& F, const TopoDS_Shape& E, TopOpeBRep_FaceEdgeIntersector& FEINT, const Handle(TopOpeBRepDS_HDataStructure)& HDS);
0045 
0046 
0047 
0048 
0049 protected:
0050 
0051 
0052 
0053 
0054 
0055 private:
0056 
0057   
0058 
0059   //! Search, among a list of interferences accessed by the iterator
0060   //! <IT>, a geometry <G> whose 3D point is identical to the 3D point
0061   //! of the TheDSPoint <DSP>.
0062   //! returns True if such an interference has been found, False else.
0063   //! if True, iterator It points (by the Value() method) on the first
0064   //! interference accessing an identical 3D point.
0065   Standard_EXPORT Standard_Boolean ScanInterfList (TopOpeBRepDS_ListIteratorOfListOfInterference& IT, const TopOpeBRepDS_Point& DSP, const TopOpeBRepDS_DataStructure& BDS) const;
0066   
0067 
0068   //! Search for an interference in list <IT> which 3D geometry
0069   //! equals 3D geometry of the current intersection of <EI>.
0070   //! The search is performed by ScanInterfList.
0071   //! if found, set <G> to the geometry of the interference found.
0072   //! returns found.
0073   Standard_EXPORT Standard_Boolean GetGeometry (TopOpeBRepDS_ListIteratorOfListOfInterference& IT, const TopOpeBRep_FaceEdgeIntersector& EI, Standard_Integer& G, const TopOpeBRepDS_DataStructure& DS) const;
0074   
0075   Standard_EXPORT Standard_Integer MakeGeometry (TopOpeBRep_FaceEdgeIntersector& EI, TopOpeBRepDS_DataStructure& DS) const;
0076   
0077 
0078   //! Get the geometry of a DS point <DSP>.
0079   //! First, search it with ScanInterfList (previous method).
0080   //! if found, set <G> to the geometry of the interference found.
0081   //! else, add the point <DSP> in the <DS> and set <G> to the
0082   //! value of the new geometry such created.
0083   //!
0084   //! returns the value of ScanInterfList().
0085   Standard_EXPORT Standard_Boolean GetGeometry (const TopOpeBRepDS_ListOfInterference& L, const TopOpeBRepDS_Point& DSP, Standard_Integer& G, TopOpeBRepDS_DataStructure& DS) const;
0086   
0087 
0088   //! Add interference <I> to list <LI>.
0089   //! Add <I> to the interference list of <I> geometry (via <BDS>).
0090   Standard_EXPORT void StoreInterference (const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_ListOfInterference& LI, TopOpeBRepDS_DataStructure& BDS) const;
0091 
0092 
0093 
0094 
0095 };
0096 
0097 
0098 
0099 
0100 
0101 
0102 
0103 #endif // _TopOpeBRep_FaceEdgeFiller_HeaderFile