Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1998-08-18
0002 // Created by: Yves FRICAUD
0003 // Copyright (c) 1998-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 _TopOpeBRepDS_GapFiller_HeaderFile
0018 #define _TopOpeBRepDS_GapFiller_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TopOpeBRepDS_ListOfInterference.hxx>
0025 #include <TColStd_MapOfInteger.hxx>
0026 class TopOpeBRepDS_HDataStructure;
0027 class TopOpeBRepDS_GapTool;
0028 class TopOpeBRepDS_Association;
0029 class TopOpeBRepDS_Interference;
0030 class TopoDS_Shape;
0031 class TopoDS_Face;
0032 class TopoDS_Edge;
0033 
0034 
0035 
0036 class TopOpeBRepDS_GapFiller 
0037 {
0038 public:
0039 
0040   DEFINE_STANDARD_ALLOC
0041 
0042   
0043   Standard_EXPORT TopOpeBRepDS_GapFiller(const Handle(TopOpeBRepDS_HDataStructure)& HDS);
0044   
0045   Standard_EXPORT void Perform();
0046   
0047   //! Recherche parmi  l'ensemble  des points  d'Interference
0048   //! la Liste <LI> des points qui correspondent au point d'indice <Index>
0049   Standard_EXPORT void FindAssociatedPoints (const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_ListOfInterference& LI);
0050   
0051   //! Enchaine les sections   via  les points d'Interferences  deja
0052   //! associe; Renvoit  dans   <L> les points extremites des Lignes.
0053   //! Methodes pour  construire la liste des Points qui
0054   //! peuvent correspondre a une Point donne.
0055   Standard_EXPORT Standard_Boolean CheckConnexity (TopOpeBRepDS_ListOfInterference& LI);
0056   
0057   Standard_EXPORT void AddPointsOnShape (const TopoDS_Shape& S, TopOpeBRepDS_ListOfInterference& LI);
0058   
0059   //! Methodes pour  reduire la liste des Points qui
0060   //! peuvent correspondre a une Point donne.
0061   Standard_EXPORT void AddPointsOnConnexShape (const TopoDS_Shape& F, const TopOpeBRepDS_ListOfInterference& LI);
0062   
0063   Standard_EXPORT void FilterByFace (const TopoDS_Face& F, TopOpeBRepDS_ListOfInterference& LI);
0064   
0065   Standard_EXPORT void FilterByEdge (const TopoDS_Edge& E, TopOpeBRepDS_ListOfInterference& LI);
0066   
0067   Standard_EXPORT void FilterByIncidentDistance (const TopoDS_Face& F, const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_ListOfInterference& LI);
0068   
0069   //! Return TRUE si I a ete obtenu par une intersection
0070   //! avec <F>.
0071   Standard_EXPORT Standard_Boolean IsOnFace (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Face& F) const;
0072   
0073   //! Return TRUE  si I ou une  de  ses representaions a
0074   //! pour support <E>.
0075   //! Methodes de  reconstructions des  geometries des point
0076   //! et des courbes de section
0077   Standard_EXPORT Standard_Boolean IsOnEdge (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Edge& E) const;
0078   
0079   Standard_EXPORT void BuildNewGeometries();
0080   
0081   Standard_EXPORT void ReBuildGeom (const Handle(TopOpeBRepDS_Interference)& I1, TColStd_MapOfInteger& Done);
0082 
0083 
0084 
0085 
0086 protected:
0087 
0088 
0089 
0090 
0091 
0092 private:
0093 
0094 
0095 
0096   Handle(TopOpeBRepDS_HDataStructure) myHDS;
0097   Handle(TopOpeBRepDS_GapTool) myGapTool;
0098   Handle(TopOpeBRepDS_Association) myAsso;
0099 
0100 
0101 };
0102 
0103 
0104 
0105 
0106 
0107 
0108 
0109 #endif // _TopOpeBRepDS_GapFiller_HeaderFile