Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:09

0001 // Created on: 1996-01-02
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1996-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 _BRepCheck_Shell_HeaderFile
0018 #define _BRepCheck_Shell_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <Standard_Integer.hxx>
0023 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
0024 #include <BRepCheck_Result.hxx>
0025 #include <TopTools_ListOfShape.hxx>
0026 class TopoDS_Shell;
0027 class TopoDS_Shape;
0028 
0029 
0030 class BRepCheck_Shell;
0031 DEFINE_STANDARD_HANDLE(BRepCheck_Shell, BRepCheck_Result)
0032 
0033 
0034 class BRepCheck_Shell : public BRepCheck_Result
0035 {
0036 
0037 public:
0038 
0039   
0040   Standard_EXPORT BRepCheck_Shell(const TopoDS_Shell& S);
0041   
0042   Standard_EXPORT void InContext (const TopoDS_Shape& ContextShape) Standard_OVERRIDE;
0043   
0044   Standard_EXPORT void Minimum() Standard_OVERRIDE;
0045   
0046   Standard_EXPORT void Blind() Standard_OVERRIDE;
0047   
0048   //! Checks if the oriented  faces of the shell  give a
0049   //! closed shell.    If the  wire is  closed,  returns
0050   //! BRepCheck_NoError.If      <Update>     is  set  to
0051   //! Standard_True, registers the status in the list.
0052   Standard_EXPORT BRepCheck_Status Closed (const Standard_Boolean Update = Standard_False);
0053   
0054   //! Checks if the   oriented faces  of  the shell  are
0055   //! correctly oriented.  An internal  call is  made to
0056   //! the  method  Closed.   If  <Update>    is set   to
0057   //! Standard_True, registers the status in the list.
0058   Standard_EXPORT BRepCheck_Status Orientation (const Standard_Boolean Update = Standard_False);
0059   
0060   Standard_EXPORT void SetUnorientable();
0061   
0062   Standard_EXPORT Standard_Boolean IsUnorientable() const;
0063   
0064   Standard_EXPORT Standard_Integer NbConnectedSet (TopTools_ListOfShape& theSets);
0065 
0066 
0067 
0068 
0069   DEFINE_STANDARD_RTTIEXT(BRepCheck_Shell,BRepCheck_Result)
0070 
0071 protected:
0072 
0073 
0074 
0075 
0076 private:
0077 
0078 
0079   Standard_Integer myNbori;
0080   Standard_Boolean myCdone;
0081   BRepCheck_Status myCstat;
0082   Standard_Boolean myOdone;
0083   BRepCheck_Status myOstat;
0084   TopTools_IndexedDataMapOfShapeListOfShape myMapEF;
0085 
0086 
0087 };
0088 
0089 
0090 
0091 
0092 
0093 
0094 
0095 #endif // _BRepCheck_Shell_HeaderFile