1 -- File: ToolPolygon.cdl
2 -- Created: Fri Aug 2 08:18:37 1991
3 -- Author: Didier PIFFAULT
5 ---Copyright: Matra Datavision 1991, 1992
8 generic class ToolPolygon from Intf
9 (Point as any; -- as Pnt2d, Pnt from gp
11 BoundingBox as any) -- as Box2d, Box from Bnd
13 ---Purpose: Describes the necessary information about a polyline to
14 -- compute the interference between two polylines.
16 raises OutOfRange from Standard
19 is Bounding (myclass; thePolyg : Polygon)
21 ---Purpose: Returns the bounding box of the polygon.
23 DeflectionOverEstimation
24 (myclass; thePolyg : Polygon)
25 returns Real from Standard;
26 ---Purpose: Returns the tolerance of the polygon.
28 Closed (myclass; thePolyg : Polygon)
29 returns Boolean from Standard;
30 ---Purpose: Returns True if the polyline is closed.
32 NbSegments (myclass; thePolyg : Polygon)
34 ---Purpose: Returns the number of Segments in the polyline.
36 BeginOfSeg (myclass; thePolyg : Polygon;
39 raises OutOfRange from Standard;
40 ---Purpose: Returns the first point of segment of range <Index> in the
43 EndOfSeg (myclass; thePolyg : Polygon;
46 raises OutOfRange from Standard;
47 ---Purpose: Returns the Second point of the segment of range Index in