1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( SIVA )
3 // Copyright (c) 1993-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 _IGESSolid_ManifoldSolid_HeaderFile
18 #define _IGESSolid_ManifoldSolid_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Boolean.hxx>
24 #include <IGESSolid_HArray1OfShell.hxx>
25 #include <TColStd_HArray1OfInteger.hxx>
26 #include <IGESData_IGESEntity.hxx>
27 #include <Standard_Integer.hxx>
28 class IGESSolid_Shell;
29 class Standard_DimensionMismatch;
30 class Standard_OutOfRange;
33 class IGESSolid_ManifoldSolid;
34 DEFINE_STANDARD_HANDLE(IGESSolid_ManifoldSolid, IGESData_IGESEntity)
36 //! defines ManifoldSolid, Type <186> Form Number <0>
37 //! in package IGESSolid
38 //! A manifold solid is a bounded, closed, and finite volume
39 //! in three dimensional Euclidean space
40 class IGESSolid_ManifoldSolid : public IGESData_IGESEntity
46 Standard_EXPORT IGESSolid_ManifoldSolid();
48 //! This method is used to set the fields of the class
50 //! - aShell : pointer to the shell
51 //! - shellflag : orientation flag of shell
52 //! - voidShells : the void shells
53 //! - voidShellFlags : orientation of the void shells
54 //! raises exception if length of voidShells and voidShellFlags
56 Standard_EXPORT void Init (const Handle(IGESSolid_Shell)& aShell, const Standard_Boolean shellflag, const Handle(IGESSolid_HArray1OfShell)& voidShells, const Handle(TColStd_HArray1OfInteger)& voidShellFlags);
58 //! returns the Shell entity which is being referred
59 Standard_EXPORT Handle(IGESSolid_Shell) Shell() const;
61 //! returns the orientation flag of the shell
62 Standard_EXPORT Standard_Boolean OrientationFlag() const;
64 //! returns the number of void shells
65 Standard_EXPORT Standard_Integer NbVoidShells() const;
67 //! returns Index'th void shell.
68 //! raises exception if Index <= 0 or Index > NbVoidShells()
69 Standard_EXPORT Handle(IGESSolid_Shell) VoidShell (const Standard_Integer Index) const;
71 //! returns Index'th orientation flag.
72 //! raises exception if Index <= 0 or Index > NbVoidShells()
73 Standard_EXPORT Standard_Boolean VoidOrientationFlag (const Standard_Integer Index) const;
78 DEFINE_STANDARD_RTTIEXT(IGESSolid_ManifoldSolid,IGESData_IGESEntity)
88 Handle(IGESSolid_Shell) theShell;
89 Standard_Boolean theOrientationFlag;
90 Handle(IGESSolid_HArray1OfShell) theVoidShells;
91 Handle(TColStd_HArray1OfInteger) theOrientFlags;
102 #endif // _IGESSolid_ManifoldSolid_HeaderFile