1 // Created on: 1996-01-02
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1996-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 _BRepCheck_Shell_HeaderFile
18 #define _BRepCheck_Shell_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Integer.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <BRepCheck_Status.hxx>
26 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
27 #include <BRepCheck_Result.hxx>
28 #include <TopTools_ListOfShape.hxx>
33 class BRepCheck_Shell;
34 DEFINE_STANDARD_HANDLE(BRepCheck_Shell, BRepCheck_Result)
37 class BRepCheck_Shell : public BRepCheck_Result
43 Standard_EXPORT BRepCheck_Shell(const TopoDS_Shell& S);
45 Standard_EXPORT void InContext (const TopoDS_Shape& ContextShape) Standard_OVERRIDE;
47 Standard_EXPORT void Minimum() Standard_OVERRIDE;
49 Standard_EXPORT void Blind() Standard_OVERRIDE;
51 //! Checks if the oriented faces of the shell give a
52 //! closed shell. If the wire is closed, returns
53 //! BRepCheck_NoError.If <Update> is set to
54 //! Standard_True, registers the status in the list.
55 Standard_EXPORT BRepCheck_Status Closed (const Standard_Boolean Update = Standard_False);
57 //! Checks if the oriented faces of the shell are
58 //! correctly oriented. An internal call is made to
59 //! the method Closed. If <Update> is set to
60 //! Standard_True, registers the status in the list.
61 Standard_EXPORT BRepCheck_Status Orientation (const Standard_Boolean Update = Standard_False);
63 Standard_EXPORT void SetUnorientable();
65 Standard_EXPORT Standard_Boolean IsUnorientable() const;
67 Standard_EXPORT Standard_Integer NbConnectedSet (TopTools_ListOfShape& theSets);
72 DEFINE_STANDARD_RTTIEXT(BRepCheck_Shell,BRepCheck_Result)
82 Standard_Integer myNbori;
83 Standard_Boolean myCdone;
84 BRepCheck_Status myCstat;
85 Standard_Boolean myOdone;
86 BRepCheck_Status myOstat;
87 TopTools_IndexedDataMapOfShapeListOfShape myMapEF;
98 #endif // _BRepCheck_Shell_HeaderFile