summaryrefslogtreecommitdiff
path: root/src/IntCurve/IntCurve_ToolPolygon.cdl
blob: f238550dd37239d43b9502c0d2eb9d7516a0d104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
-- File:	ToolPolygon.cdl
-- Created:	Fri Aug  2 08:18:37 1991
-- Author:	Didier PIFFAULT
--		<dpf@sdsun2>
---Copyright:	 Matra Datavision 1991


generic class ToolPolygon from IntCurve (Point as any; 
    	    				 Polygon as any;
    	    	    	    	    	 BoundingBox as any)

	---Purpose: Describe a polyline  as  a topology to compute the
	--          interference beetween two polylines.


        ---Level: Internal

raises  OutOfRange from Standard


is  Bounding       (myclass; thePolygon : Polygon)
    	    	    returns BoundingBox;
    ---Purpose: Give the bounding box of the polygon.
    ---C++: inline 
    ---C++: return const &

    DeflectionOverEstimation
    	    	   (myclass; thePolygon : Polygon)
    		   ---C++: inline
		   returns Real from Standard;

    Closed         (myclass; thePolygon : Polygon)
    	            ---C++: inline
    	    	    returns Boolean from Standard;

    NbSegments     (myclass; thePolygon : Polygon)
                    ---C++: inline
    	    	    returns Integer;
    ---Purpose: Give the number of Segments in the polyline.
    
    BeginOfSeg     (myclass; thePolygon : Polygon;
    	    	    Index : in Integer)
		    ---C++: inline
    	    	    returns Point
    	    	    raises OutOfRange from Standard;
                    ---C++: return const &
    ---Purpose: Give the point of range Index in the Polygon. 

    EndOfSeg       (myclass; thePolygon : Polygon;
    	    	    Index : in Integer)
		    ---C++: inline
    	    	    returns Point
    	    	    raises OutOfRange from Standard;
		    ---C++: return const &
    ---Purpose: Give the point of range Index in the Polygon. 

		 
end ToolPolygon;