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_SolidBuilder_HeaderFile
18 #define _TopOpeBRepBuild_SolidBuilder_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TopOpeBRepBuild_LoopSet.hxx>
25 #include <TopOpeBRepBuild_BlockIterator.hxx>
26 #include <TopOpeBRepBuild_BlockBuilder.hxx>
27 #include <TopOpeBRepBuild_SolidAreaBuilder.hxx>
28 #include <Standard_Boolean.hxx>
29 #include <Standard_Integer.hxx>
30 class TopOpeBRepBuild_ShellFaceSet;
32 class TopOpeBRepBuild_ShapeSet;
36 class TopOpeBRepBuild_SolidBuilder
43 Standard_EXPORT TopOpeBRepBuild_SolidBuilder();
45 //! Create a SolidBuilder to build the areas on
46 //! the shapes (shells, blocks of faces) described by <LS>.
47 Standard_EXPORT TopOpeBRepBuild_SolidBuilder(TopOpeBRepBuild_ShellFaceSet& FS, const Standard_Boolean ForceClass = Standard_False);
49 Standard_EXPORT void InitSolidBuilder (TopOpeBRepBuild_ShellFaceSet& FS, const Standard_Boolean ForceClass);
51 Standard_EXPORT Standard_Integer InitSolid();
53 Standard_EXPORT Standard_Boolean MoreSolid() const;
55 Standard_EXPORT void NextSolid();
57 Standard_EXPORT Standard_Integer InitShell();
59 Standard_EXPORT Standard_Boolean MoreShell() const;
61 Standard_EXPORT void NextShell();
63 Standard_EXPORT Standard_Boolean IsOldShell() const;
65 //! Returns current shell
66 //! This shell may be :
67 //! * an old shell OldShell(), which has not been reconstructed;
68 //! * a new shell made of faces described by ...NewFace() methods.
69 Standard_EXPORT const TopoDS_Shape& OldShell() const;
71 Standard_EXPORT Standard_Integer InitFace();
73 Standard_EXPORT Standard_Boolean MoreFace() const;
75 Standard_EXPORT void NextFace();
77 //! Returns current new face of current new shell.
78 Standard_EXPORT const TopoDS_Shape& Face() const;
92 Standard_EXPORT void MakeLoops (TopOpeBRepBuild_ShapeSet& SS);
95 TopOpeBRepBuild_LoopSet myLoopSet;
96 TopOpeBRepBuild_BlockIterator myBlockIterator;
97 TopOpeBRepBuild_BlockBuilder myBlockBuilder;
98 TopOpeBRepBuild_SolidAreaBuilder mySolidAreaBuilder;
109 #endif // _TopOpeBRepBuild_SolidBuilder_HeaderFile