1 -- Created on: 2012-02-10
2 -- Created by: Serey ZERCHANINOV
3 -- Copyright (c) -1999 Matra Datavision
4 -- Copyright (c) 2012-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
23 deferred class Polygon2d from Intf
30 raises OutOfRange from Standard
35 returns Box2d from Bnd;
36 ---C++: return const &
38 ---Purpose: Returns the bounding box of the polygon.
41 returns Boolean from Standard is virtual;
42 ---Purpose: Returns True if the polyline is closed.
44 DeflectionOverEstimation (me) returns Real from Standard is deferred;
45 ---Purpose: Returns the tolerance of the polygon.
47 NbSegments (me) returns Integer from Standard is deferred;
48 ---Purpose: Returns the number of Segments in the polyline.
50 Segment (me; theIndex : in Integer from Standard;
51 theBegin, theEnd : in out Pnt2d from gp)
52 raises OutOfRange from Standard is deferred;
53 ---Purpose: Returns the points of the segment <Index> in the Polygon.
57 myBox : Box2d from Bnd is protected;