1 // Created by: Peter KURNEV
2 // Copyright (c) 1999-2012 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #ifndef _BOPAlgo_WireSplitter_HeaderFile
16 #define _BOPAlgo_WireSplitter_HeaderFile
18 #include <Standard.hxx>
19 #include <Standard_DefineAlloc.hxx>
20 #include <Standard_Handle.hxx>
22 #include <BOPAlgo_PWireEdgeSet.hxx>
23 #include <BOPTools_ListOfConnexityBlock.hxx>
24 #include <BOPAlgo_Algo.hxx>
25 #include <BOPCol_BaseAllocator.hxx>
26 #include <BOPCol_ListOfShape.hxx>
27 #include <BOPTools_ConnexityBlock.hxx>
28 #include <IntTools_Context.hxx>
29 class BOPAlgo_WireEdgeSet;
34 class BOPAlgo_WireSplitter : public BOPAlgo_Algo
41 Standard_EXPORT BOPAlgo_WireSplitter();
42 Standard_EXPORT virtual ~BOPAlgo_WireSplitter();
44 Standard_EXPORT BOPAlgo_WireSplitter(const BOPCol_BaseAllocator& theAllocator);
46 Standard_EXPORT void SetWES (const BOPAlgo_WireEdgeSet& theWES);
48 Standard_EXPORT BOPAlgo_WireEdgeSet& WES();
50 //! Sets the context for the algorithm
51 Standard_EXPORT void SetContext(const Handle(IntTools_Context)& theContext);
53 //! Returns the context
54 Standard_EXPORT const Handle(IntTools_Context)& Context();
56 Standard_EXPORT virtual void Perform() Standard_OVERRIDE;
58 static void MakeWire(BOPCol_ListOfShape& theLE, TopoDS_Wire& theW);
60 Standard_EXPORT static void SplitBlock (const TopoDS_Face& theF,
61 BOPTools_ConnexityBlock& theCB,
62 const Handle(IntTools_Context)& theContext);
66 Standard_EXPORT virtual void CheckData() Standard_OVERRIDE;
68 Standard_EXPORT void MakeConnexityBlocks();
70 Standard_EXPORT void MakeWires();
72 BOPAlgo_PWireEdgeSet myWES;
73 BOPTools_ListOfConnexityBlock myLCB;
74 Handle(IntTools_Context) myContext;
80 #include <BOPAlgo_WireSplitter.lxx>
82 #endif // _BOPAlgo_WireSplitter_HeaderFile