blob: 38c48ea3a43555df5f65f22d3fb78dbde2a47639 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
-- File: Polygon.cdl
-- Created: Mon Oct 19 11:51:16 1992
-- Author: Laurent BUCHARD
-- <lbr@sdsun2>
---Copyright: Matra Datavision 1992
generic class Polygon from IntCurveSurface (
TheCurve as any;
TheCurveTool as any)
---Purpose: Describe a polyline as a topology to compute the
-- interference beetween two polylines 2 dimension.
uses Pnt from gp,
Box from Bnd,
Array1OfPnt from TColgp,
Array1OfReal from TColStd,
HArray1OfReal from TColStd
raises OutOfRange from Standard
is
Create (Curve : TheCurve;
NbPnt : Integer from Standard)
returns Polygon from IntCurveSurface;
Create (Curve : TheCurve;
U1,U2 : Real from Standard;
NbPnt : Integer from Standard)
returns Polygon from IntCurveSurface;
Create (Curve : TheCurve;
Upars : Array1OfReal from TColStd)
returns Polygon from IntCurveSurface;
Init (me:in out;
Curve : TheCurve)
is static protected;
Init (me:in out;
Curve : TheCurve;
Upars : Array1OfReal from TColStd)
is static protected;
Bounding (me)
returns Box from Bnd
---C++: return const &
---C++: inline
is static;
---Purpose: Give the bounding box of the polygon.
DeflectionOverEstimation(me)
returns Real from Standard
---C++: inline
is static;
SetDeflectionOverEstimation(me: in out; x:Real from Standard)
---C++: inline
is static;
Closed (me : in out; clos : Boolean from Standard)
---C++: inline
is static;
Closed (me)
returns Boolean from Standard
---C++: inline
is static;
NbSegments (me)
returns Integer
---C++: inline
is static;
---Purpose: Give the number of Segments in the polyline.
BeginOfSeg (me;
Index : in Integer)
returns Pnt from gp
raises OutOfRange from Standard
---C++: return const &
---C++: inline
is static;
---Purpose: Give the point of range Index in the Polygon.
EndOfSeg (me;
Index : in Integer)
returns Pnt from gp
raises OutOfRange from Standard
---C++: return const &
---C++: inline
is static;
---Purpose: Give the point of range Index in the Polygon.
-- Implementation :
InfParameter(me)
---Purpose: Returns the parameter (On the curve)
-- of the first point of the Polygon
returns Real from Standard
---C++: inline
is static;
SupParameter(me)
---Purpose: Returns the parameter (On the curve)
-- of the last point of the Polygon
returns Real from Standard
---C++: inline
is static;
ApproxParamOnCurve(me;
Index : in Integer from Standard;
ParamOnLine : in Real from Standard)
returns Real from Standard
raises OutOfRange from Standard
is static;
---Purpose: Give an approximation of the parameter on the curve
-- according to the discretization of the Curve.
-- Test needings :
Dump (me)
is static;
fields TheBnd : Box from Bnd;
TheDeflection : Real from Standard;
NbPntIn : Integer from Standard;
ThePnts : Array1OfPnt from TColgp;
ClosedPolygon : Boolean from Standard;
--- To compute an approximate parameter on the Curve
--
Binf : Real from Standard;
Bsup : Real from Standard;
myParams : HArray1OfReal from TColStd;
end Polygon;
|