42cf5bc1 |
1 | // Created by: Peter KURNEV |
2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
3 | // |
4 | // This file is part of Open CASCADE Technology software library. |
5 | // |
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. |
11 | // |
12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. |
14 | |
15 | #ifndef _BOPAlgo_ShellSplitter_HeaderFile |
16 | #define _BOPAlgo_ShellSplitter_HeaderFile |
17 | |
18 | #include <Standard.hxx> |
19 | #include <Standard_DefineAlloc.hxx> |
20 | #include <Standard_Handle.hxx> |
21 | |
22 | #include <BOPCol_ListOfShape.hxx> |
23 | #include <BOPTools_ListOfConnexityBlock.hxx> |
24 | #include <BOPAlgo_Algo.hxx> |
25 | #include <BOPCol_BaseAllocator.hxx> |
26 | #include <BOPTools_ConnexityBlock.hxx> |
27 | class TopoDS_Shape; |
28 | |
29 | |
30 | |
31 | //! The class provides the splitting of the set of connected faces |
32 | //! on separate loops |
33 | class BOPAlgo_ShellSplitter : public BOPAlgo_Algo |
34 | { |
35 | public: |
36 | |
37 | DEFINE_STANDARD_ALLOC |
38 | |
39 | |
40 | //! empty constructor |
41 | Standard_EXPORT BOPAlgo_ShellSplitter(); |
42 | Standard_EXPORT virtual ~BOPAlgo_ShellSplitter(); |
43 | |
44 | //! constructor |
45 | Standard_EXPORT BOPAlgo_ShellSplitter(const BOPCol_BaseAllocator& theAllocator); |
46 | |
47 | //! adds a face <theS> to process |
48 | Standard_EXPORT void AddStartElement (const TopoDS_Shape& theS); |
49 | |
50 | //! return the faces to process |
51 | Standard_EXPORT const BOPCol_ListOfShape& StartElements() const; |
52 | |
53 | //! performs the algorithm |
54 | Standard_EXPORT virtual void Perform() Standard_OVERRIDE; |
55 | |
56 | //! returns the loops |
57 | Standard_EXPORT const BOPCol_ListOfShape& Shells() const; |
58 | |
59 | Standard_EXPORT static void SplitBlock (BOPTools_ConnexityBlock& theCB); |
60 | |
61 | |
42cf5bc1 |
62 | protected: |
63 | |
42cf5bc1 |
64 | Standard_EXPORT void MakeConnexityBlocks(); |
33ba8565 |
65 | |
42cf5bc1 |
66 | Standard_EXPORT void MakeShells(); |
67 | |
68 | |
69 | BOPCol_ListOfShape myStartShapes; |
70 | BOPCol_ListOfShape myShells; |
71 | BOPTools_ListOfConnexityBlock myLCB; |
72 | |
42cf5bc1 |
73 | private: |
74 | |
42cf5bc1 |
75 | }; |
76 | |
42cf5bc1 |
77 | #endif // _BOPAlgo_ShellSplitter_HeaderFile |