|
|
|||
File indexing completed on 2026-05-30 08:46:32
0001 // Created on: 2012-02-10 0002 // Created by: Serey ZERCHANINOV 0003 // Copyright (c) 2012-2014 OPEN CASCADE SAS 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef _Intf_Polygon2d_HeaderFile 0017 #define _Intf_Polygon2d_HeaderFile 0018 0019 #include <Standard.hxx> 0020 #include <Standard_DefineAlloc.hxx> 0021 #include <Standard_Handle.hxx> 0022 0023 #include <Bnd_Box2d.hxx> 0024 #include <Standard_Boolean.hxx> 0025 class gp_Pnt2d; 0026 0027 //! Describes the necessary polygon information to compute 0028 //! the interferences. 0029 class Intf_Polygon2d 0030 { 0031 public: 0032 DEFINE_STANDARD_ALLOC 0033 0034 //! Returns the bounding box of the polygon. 0035 const Bnd_Box2d& Bounding() const; 0036 0037 //! Returns True if the polyline is closed. 0038 Standard_EXPORT virtual Standard_Boolean Closed() const; 0039 0040 virtual ~Intf_Polygon2d() {} 0041 0042 //! Returns the tolerance of the polygon. 0043 Standard_EXPORT virtual Standard_Real DeflectionOverEstimation() const = 0; 0044 0045 //! Returns the number of Segments in the polyline. 0046 Standard_EXPORT virtual Standard_Integer NbSegments() const = 0; 0047 0048 //! Returns the points of the segment <Index> in the Polygon. 0049 Standard_EXPORT virtual void Segment(const Standard_Integer theIndex, 0050 gp_Pnt2d& theBegin, 0051 gp_Pnt2d& theEnd) const = 0; 0052 0053 protected: 0054 Bnd_Box2d myBox; 0055 0056 private: 0057 }; 0058 0059 #include <Intf_Polygon2d.lxx> 0060 0061 #endif // _Intf_Polygon2d_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|