1 // Created by: Peter KURNEV
2 // Copyright (c) 1999-2014 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_Section_HeaderFile
16 #define _BOPAlgo_Section_HeaderFile
18 #include <Standard.hxx>
19 #include <Standard_DefineAlloc.hxx>
20 #include <Standard_Handle.hxx>
22 #include <BOPAlgo_Builder.hxx>
23 #include <BOPCol_BaseAllocator.hxx>
24 #include <TopTools_ListOfShape.hxx>
25 class BOPAlgo_PaveFiller;
30 //! The algorithm to build a Section between the arguments.
31 //! The Section consists of vertices and edges.
32 //! The Section contains:
33 //! 1. new vertices that are subjects of V/V, E/E, E/F, F/F interferences
34 //! 2. vertices that are subjects of V/E, V/F interferences
35 //! 3. new edges that are subjects of F/F interferences
36 //! 4. edges that are Common Blocks
37 class BOPAlgo_Section : public BOPAlgo_Builder
45 Standard_EXPORT BOPAlgo_Section();
46 Standard_EXPORT virtual ~BOPAlgo_Section();
51 Standard_EXPORT BOPAlgo_Section(const BOPCol_BaseAllocator& theAllocator);
53 Standard_EXPORT virtual void BuildSection();
55 //! Returns the list of shapes generated from the
57 Standard_EXPORT virtual const TopTools_ListOfShape& Generated (const TopoDS_Shape& theS) Standard_OVERRIDE;
65 Standard_EXPORT virtual void CheckData() Standard_OVERRIDE;
67 //! Performs calculations using prepared Filler
69 Standard_EXPORT virtual void PerformInternal1 (const BOPAlgo_PaveFiller& thePF) Standard_OVERRIDE;
88 #endif // _BOPAlgo_Section_HeaderFile