// Created on: 1993-01-09 // Created by: CKY / Contract Toubro-Larsen ( SIVA ) // Copyright (c) 1993-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _IGESSolid_ManifoldSolid_HeaderFile #define _IGESSolid_ManifoldSolid_HeaderFile #include "Standard.hxx" #include "IGESSolid_Shell.hxx" #include "NCollection_Array1.hxx" #include "NCollection_HArray1.hxx" #include "Standard_Integer.hxx" #include "IGESData_IGESEntity.hxx" class IGESSolid_Shell; //! defines ManifoldSolid, Type <186> Form Number <0> //! in package IGESSolid //! A manifold solid is a bounded, closed, and finite volume //! in three dimensional Euclidean space class IGESSolid_ManifoldSolid : public IGESData_IGESEntity { public: Standard_EXPORT IGESSolid_ManifoldSolid(); //! This method is used to set the fields of the class //! ManifoldSolid //! - aShell : pointer to the shell //! - shellflag : orientation flag of shell //! - voidShells : the void shells //! - voidShellFlags : orientation of the void shells //! raises exception if length of voidShells and voidShellFlags //! do not match Standard_EXPORT void Init( const occ::handle& aShell, const bool shellflag, const occ::handle>>& voidShells, const occ::handle>& voidShellFlags); //! returns the Shell entity which is being referred Standard_EXPORT occ::handle Shell() const; //! returns the orientation flag of the shell Standard_EXPORT bool OrientationFlag() const; //! returns the number of void shells Standard_EXPORT int NbVoidShells() const; //! returns Index'th void shell. //! raises exception if Index <= 0 or Index > NbVoidShells() Standard_EXPORT occ::handle VoidShell(const int Index) const; //! returns Index'th orientation flag. //! raises exception if Index <= 0 or Index > NbVoidShells() Standard_EXPORT bool VoidOrientationFlag(const int Index) const; DEFINE_STANDARD_RTTIEXT(IGESSolid_ManifoldSolid, IGESData_IGESEntity) private: occ::handle theShell; bool theOrientationFlag; occ::handle>> theVoidShells; occ::handle> theOrientFlags; }; #endif // _IGESSolid_ManifoldSolid_HeaderFile