1 // Created on: 1995-12-21
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1995-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 _TopOpeBRepBuild_Area2dBuilder_HeaderFile
18 #define _TopOpeBRepBuild_Area2dBuilder_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TopOpeBRepBuild_AreaBuilder.hxx>
25 #include <Standard_Boolean.hxx>
26 class TopOpeBRepBuild_LoopSet;
27 class TopOpeBRepBuild_LoopClassifier;
31 //! The Area2dBuilder algorithm is used to construct Faces from a LoopSet,
32 //! where the Loop is the composite topological object of the boundary,
33 //! here wire or block of edges.
34 //! The LoopSet gives an iteration on Loops.
35 //! For each Loop it indicates if it is on the boundary (wire) or if it
36 //! results from an interference (block of edges).
37 //! The result of the Area2dBuilder is an iteration on areas.
38 //! An area is described by a set of Loops.
39 class TopOpeBRepBuild_Area2dBuilder : public TopOpeBRepBuild_AreaBuilder
46 Standard_EXPORT TopOpeBRepBuild_Area2dBuilder();
48 //! Creates a Area2dBuilder to build faces on
49 //! the (wires,blocks of edge) of <LS>, using the classifier <LC>.
50 Standard_EXPORT TopOpeBRepBuild_Area2dBuilder(TopOpeBRepBuild_LoopSet& LS, TopOpeBRepBuild_LoopClassifier& LC, const Standard_Boolean ForceClass = Standard_False);
52 //! Sets a Area1dBuilder to find the areas of
53 //! the shapes described by <LS> using the classifier <LC>.
54 Standard_EXPORT virtual void InitAreaBuilder (TopOpeBRepBuild_LoopSet& LS, TopOpeBRepBuild_LoopClassifier& LC, const Standard_Boolean ForceClass = Standard_False) Standard_OVERRIDE;
79 #endif // _TopOpeBRepBuild_Area2dBuilder_HeaderFile