1 // Created on: 1998-08-18
2 // Created by: Yves FRICAUD
3 // Copyright (c) 1998-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _TopOpeBRepDS_GapFiller_HeaderFile
18 #define _TopOpeBRepDS_GapFiller_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TopOpeBRepDS_ListOfInterference.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <TColStd_MapOfInteger.hxx>
27 class TopOpeBRepDS_HDataStructure;
28 class TopOpeBRepDS_GapTool;
29 class TopOpeBRepDS_Association;
30 class TopOpeBRepDS_Interference;
37 class TopOpeBRepDS_GapFiller
44 Standard_EXPORT TopOpeBRepDS_GapFiller(const Handle(TopOpeBRepDS_HDataStructure)& HDS);
46 Standard_EXPORT void Perform();
48 //! Recherche parmi l'ensemble des points d'Interference
49 //! la Liste <LI> des points qui correspondent au point d'indice <Index>
50 Standard_EXPORT void FindAssociatedPoints (const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_ListOfInterference& LI);
52 //! Enchaine les sections via les points d'Interferences deja
53 //! associe; Renvoit dans <L> les points extremites des Lignes.
54 //! Methodes pour construire la liste des Points qui
55 //! peuvent correspondre a une Point donne.
56 Standard_EXPORT Standard_Boolean CheckConnexity (TopOpeBRepDS_ListOfInterference& LI);
58 Standard_EXPORT void AddPointsOnShape (const TopoDS_Shape& S, TopOpeBRepDS_ListOfInterference& LI);
60 //! Methodes pour reduire la liste des Points qui
61 //! peuvent correspondre a une Point donne.
62 Standard_EXPORT void AddPointsOnConnexShape (const TopoDS_Shape& F, const TopOpeBRepDS_ListOfInterference& LI);
64 Standard_EXPORT void FilterByFace (const TopoDS_Face& F, TopOpeBRepDS_ListOfInterference& LI);
66 Standard_EXPORT void FilterByEdge (const TopoDS_Edge& E, TopOpeBRepDS_ListOfInterference& LI);
68 Standard_EXPORT void FilterByIncidentDistance (const TopoDS_Face& F, const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_ListOfInterference& LI);
70 //! Return TRUE si I a ete obtenu par une intersection
72 Standard_EXPORT Standard_Boolean IsOnFace (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Face& F) const;
74 //! Return TRUE si I ou une de ses representaions a
76 //! Methodes de reconstructions des geometries des point
77 //! et des courbes de section
78 Standard_EXPORT Standard_Boolean IsOnEdge (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Edge& E) const;
80 Standard_EXPORT void BuildNewGeometries();
82 Standard_EXPORT void ReBuildGeom (const Handle(TopOpeBRepDS_Interference)& I1, TColStd_MapOfInteger& Done);
97 Handle(TopOpeBRepDS_HDataStructure) myHDS;
98 Handle(TopOpeBRepDS_GapTool) myGapTool;
99 Handle(TopOpeBRepDS_Association) myAsso;
110 #endif // _TopOpeBRepDS_GapFiller_HeaderFile