1 // Created on: 2016-04-07
2 // Copyright (c) 2016 OPEN CASCADE SAS
3 // Created by: Oleg AGASHIN
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _BRepMeshData_Face_HeaderFile
17 #define _BRepMeshData_Face_HeaderFile
19 #include <IMeshData_Types.hxx>
20 #include <IMeshData_Face.hxx>
21 #include <IMeshData_Wire.hxx>
23 //! Default implementation of face data model entity.
24 class BRepMeshData_Face : public IMeshData_Face
31 Standard_EXPORT BRepMeshData_Face (
32 const TopoDS_Face& theFace,
33 const Handle (NCollection_IncAllocator)& theAllocator);
36 Standard_EXPORT virtual ~BRepMeshData_Face ();
38 //! Gets number of children.
39 Standard_EXPORT virtual Standard_Integer WiresNb () const Standard_OVERRIDE;
41 //! Gets wire with the given index.
42 Standard_EXPORT virtual const IMeshData::IWireHandle& GetWire (
43 const Standard_Integer theIndex) const Standard_OVERRIDE;
45 //! Adds wire to discrete model of face.
46 Standard_EXPORT virtual const IMeshData::IWireHandle& AddWire (
47 const TopoDS_Wire& theWire,
48 const Standard_Integer theEdgeNb = 0) Standard_OVERRIDE;
50 DEFINE_STANDARD_RTTIEXT(BRepMeshData_Face, IMeshData_Face)
54 Handle (NCollection_IncAllocator) myAllocator;
55 IMeshData::VectorOfIWireHandles myDWires;