Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:25

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 
0033 
0034 class TopOpeBRepBuild_SolidBuilder 
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   
0041   Standard_EXPORT TopOpeBRepBuild_SolidBuilder();
0042   
0043   //! Create a SolidBuilder to build the areas on
0044   //! the shapes (shells, blocks of faces) described by <LS>.
0045   Standard_EXPORT TopOpeBRepBuild_SolidBuilder(TopOpeBRepBuild_ShellFaceSet& FS, const Standard_Boolean ForceClass = Standard_False);
0046   
0047   Standard_EXPORT void InitSolidBuilder (TopOpeBRepBuild_ShellFaceSet& FS, const Standard_Boolean ForceClass);
0048   
0049   Standard_EXPORT Standard_Integer InitSolid();
0050   
0051   Standard_EXPORT Standard_Boolean MoreSolid() const;
0052   
0053   Standard_EXPORT void NextSolid();
0054   
0055   Standard_EXPORT Standard_Integer InitShell();
0056   
0057   Standard_EXPORT Standard_Boolean MoreShell() const;
0058   
0059   Standard_EXPORT void NextShell();
0060   
0061   Standard_EXPORT Standard_Boolean IsOldShell() const;
0062   
0063   //! Returns current shell
0064   //! This shell may be :
0065   //! * an old shell OldShell(), which has not been reconstructed;
0066   //! * a new shell made of faces described by ...NewFace() methods.
0067   Standard_EXPORT const TopoDS_Shape& OldShell() const;
0068   
0069   Standard_EXPORT Standard_Integer InitFace();
0070   
0071   Standard_EXPORT Standard_Boolean MoreFace() const;
0072   
0073   Standard_EXPORT void NextFace();
0074   
0075   //! Returns current new face of current new shell.
0076   Standard_EXPORT const TopoDS_Shape& Face() const;
0077 
0078 
0079 
0080 
0081 protected:
0082 
0083 
0084 
0085 
0086 
0087 private:
0088 
0089   
0090   Standard_EXPORT void MakeLoops (TopOpeBRepBuild_ShapeSet& SS);
0091 
0092 
0093   TopOpeBRepBuild_LoopSet myLoopSet;
0094   TopOpeBRepBuild_BlockIterator myBlockIterator;
0095   TopOpeBRepBuild_BlockBuilder myBlockBuilder;
0096   TopOpeBRepBuild_SolidAreaBuilder mySolidAreaBuilder;
0097 
0098 
0099 };
0100 
0101 
0102 
0103 
0104 
0105 
0106 
0107 #endif // _TopOpeBRepBuild_SolidBuilder_HeaderFile