1 // Created on: 2012-02-10
2 // Created by: Serey ZERCHANINOV
3 // Copyright (c) 2012-2014 OPEN CASCADE SAS
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 _Intf_Polygon2d_HeaderFile
17 #define _Intf_Polygon2d_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <Bnd_Box2d.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <Standard_Real.hxx>
26 #include <Standard_Integer.hxx>
27 class Standard_OutOfRange;
32 //! Describes the necessary polygon information to compute
33 //! the interferences.
41 //! Returns the bounding box of the polygon.
42 const Bnd_Box2d& Bounding() const;
44 //! Returns True if the polyline is closed.
45 Standard_EXPORT virtual Standard_Boolean Closed() const;
46 virtual ~Intf_Polygon2d() {}
48 //! Returns the tolerance of the polygon.
49 Standard_EXPORT virtual Standard_Real DeflectionOverEstimation() const = 0;
51 //! Returns the number of Segments in the polyline.
52 Standard_EXPORT virtual Standard_Integer NbSegments() const = 0;
54 //! Returns the points of the segment <Index> in the Polygon.
55 Standard_EXPORT virtual void Segment (const Standard_Integer theIndex, gp_Pnt2d& theBegin, gp_Pnt2d& theEnd) const = 0;
76 #include <Intf_Polygon2d.lxx>
82 #endif // _Intf_Polygon2d_HeaderFile