Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-21 09:16:28

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 <TopoDS_Shape.hxx>
0024 #include <NCollection_List.hxx>
0025 #include <TopTools_ShapeMapHasher.hxx>
0026 #include <NCollection_IndexedDataMap.hxx>
0027 #include <BRepCheck_Result.hxx>
0028 class TopoDS_Shell;
0029 class TopoDS_Shape;
0030 
0031 class BRepCheck_Shell : public BRepCheck_Result
0032 {
0033 
0034 public:
0035   Standard_EXPORT BRepCheck_Shell(const TopoDS_Shell& S);
0036 
0037   Standard_EXPORT void InContext(const TopoDS_Shape& ContextShape) override;
0038 
0039   Standard_EXPORT void Minimum() override;
0040 
0041   Standard_EXPORT void Blind() override;
0042 
0043   //! Checks if the oriented faces of the shell give a
0044   //! closed shell. If the wire is closed, returns
0045   //! BRepCheck_NoError. If <Update> is set to
0046   //! true, registers the status in the list.
0047   Standard_EXPORT BRepCheck_Status Closed(const bool Update = false);
0048 
0049   //! Checks if the oriented faces of the shell are
0050   //! correctly oriented. An internal call is made to
0051   //! the method Closed. If <Update> is set to
0052   //! true, registers the status in the list.
0053   Standard_EXPORT BRepCheck_Status Orientation(const bool Update = false);
0054 
0055   Standard_EXPORT void SetUnorientable();
0056 
0057   Standard_EXPORT bool IsUnorientable() const;
0058 
0059   Standard_EXPORT int NbConnectedSet(NCollection_List<TopoDS_Shape>& theSets);
0060 
0061   DEFINE_STANDARD_RTTIEXT(BRepCheck_Shell, BRepCheck_Result)
0062 
0063 private:
0064   int              myNbori;
0065   bool             myCdone;
0066   BRepCheck_Status myCstat;
0067   bool             myOdone;
0068   BRepCheck_Status myOstat;
0069   NCollection_IndexedDataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0070     myMapEF;
0071 };
0072 
0073 #endif // _BRepCheck_Shell_HeaderFile