Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 09:19:27

0001 // Created on: 1995-12-21
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _TopOpeBRepBuild_SolidBuilder_HeaderFile
0018 #define _TopOpeBRepBuild_SolidBuilder_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <TopOpeBRepBuild_LoopSet.hxx>
0024 #include <TopOpeBRepBuild_BlockIterator.hxx>
0025 #include <TopOpeBRepBuild_BlockBuilder.hxx>
0026 #include <TopOpeBRepBuild_SolidAreaBuilder.hxx>
0027 #include <Standard_Integer.hxx>
0028 class TopOpeBRepBuild_ShellFaceSet;
0029 class TopoDS_Shape;
0030 class TopOpeBRepBuild_ShapeSet;
0031 
0032 class TopOpeBRepBuild_SolidBuilder
0033 {
0034 public:
0035   DEFINE_STANDARD_ALLOC
0036 
0037   Standard_EXPORT TopOpeBRepBuild_SolidBuilder();
0038 
0039   //! Create a SolidBuilder to build the areas on
0040   //! the shapes (shells, blocks of faces) described by <LS>.
0041   Standard_EXPORT TopOpeBRepBuild_SolidBuilder(TopOpeBRepBuild_ShellFaceSet& FS,
0042                                                const bool                    ForceClass = false);
0043 
0044   Standard_EXPORT void InitSolidBuilder(TopOpeBRepBuild_ShellFaceSet& FS, const bool ForceClass);
0045 
0046   Standard_EXPORT int InitSolid();
0047 
0048   Standard_EXPORT bool MoreSolid() const;
0049 
0050   Standard_EXPORT void NextSolid();
0051 
0052   Standard_EXPORT int InitShell();
0053 
0054   Standard_EXPORT bool MoreShell() const;
0055 
0056   Standard_EXPORT void NextShell();
0057 
0058   Standard_EXPORT bool IsOldShell() const;
0059 
0060   //! Returns current shell
0061   //! This shell may be :
0062   //! * an old shell OldShell(), which has not been reconstructed;
0063   //! * a new shell made of faces described by ...NewFace() methods.
0064   Standard_EXPORT const TopoDS_Shape& OldShell() const;
0065 
0066   Standard_EXPORT int InitFace();
0067 
0068   Standard_EXPORT bool MoreFace() const;
0069 
0070   Standard_EXPORT void NextFace();
0071 
0072   //! Returns current new face of current new shell.
0073   Standard_EXPORT const TopoDS_Shape& Face() const;
0074 
0075 private:
0076   Standard_EXPORT void MakeLoops(TopOpeBRepBuild_ShapeSet& SS);
0077 
0078   TopOpeBRepBuild_LoopSet          myLoopSet;
0079   TopOpeBRepBuild_BlockIterator    myBlockIterator;
0080   TopOpeBRepBuild_BlockBuilder     myBlockBuilder;
0081   TopOpeBRepBuild_SolidAreaBuilder mySolidAreaBuilder;
0082 };
0083 
0084 #endif // _TopOpeBRepBuild_SolidBuilder_HeaderFile