9c5c91c34feefe0f70f0ce96403d38df27402199
[occt.git] / src / Intf / Intf_ToolPolygon.cdl
1 -- File:        ToolPolygon.cdl
2 -- Created:     Fri Aug  2 08:18:37 1991
3 -- Author:      Didier PIFFAULT
4 --              <dpf@sdsun2>
5 ---Copyright:    Matra Datavision 1991, 1992
6
7
8 generic class ToolPolygon from Intf 
9             (Point as any;        --  as Pnt2d, Pnt from gp
10              Polygon as any;
11              BoundingBox as any)  --  as Box2d, Box from Bnd
12
13         ---Purpose: Describes the necessary information about a polyline to
14         --          compute the interference between two polylines.
15
16 raises  OutOfRange from Standard
17
18
19 is  Bounding       (myclass; thePolyg : Polygon)
20                     returns BoundingBox;
21     ---Purpose: Returns the bounding box of the polygon.
22
23     DeflectionOverEstimation
24                    (myclass; thePolyg : Polygon)
25                     returns Real from Standard;
26     ---Purpose: Returns the tolerance of the polygon.
27
28     Closed         (myclass; thePolyg : Polygon)
29                     returns Boolean from Standard;
30     ---Purpose: Returns True if the polyline is closed.
31
32     NbSegments     (myclass; thePolyg : Polygon)
33                     returns Integer;
34     ---Purpose: Returns the number of Segments in the polyline.
35     
36     BeginOfSeg     (myclass; thePolyg : Polygon;
37                     Index : in Integer)
38                     returns Point
39                     raises OutOfRange from Standard;
40     ---Purpose: Returns the first point of segment of range  <Index> in the
41     --          Polygon.
42
43     EndOfSeg       (myclass; thePolyg : Polygon;
44                     Index : in Integer)
45                     returns Point
46                     raises OutOfRange from Standard;
47     ---Purpose: Returns the Second point  of the segment  of range Index in
48     --          the Polygon.
49                  
50 end ToolPolygon;