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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
|
-- File: Bisector_BisecCC.cdl
-- Created: Mon Jan 10 11:49:47 1994
-- Author: Yves FRICAUD
-- <yfr@phylox>
---Copyright: Matra Datavision 1994
class BisecCC from Bisector
inherits
Curve from Bisector
---Purpose: Construct the bisector between two curves.
-- The curves can intersect only in their extremities.
uses
PolyBis from Bisector,
Shape from GeomAbs,
CurveType from GeomAbs,
Curve from Geom2d,
Geometry from Geom2d,
Pnt2d from gp,
Vec2d from gp,
SequenceOfReal from TColStd,
Trsf2d from gp
raises DomainError from Standard,
RangeError from Standard
is
Create returns mutable BisecCC;
Create (Cu1 : Curve from Geom2d;
Cu2 : Curve from Geom2d;
Side1 : Real ;
Side2 : Real ;
Origin : Pnt2d from gp ;
DistMax : Real = 500 )
---Purpose: Constructs the bisector between the curves <Cu1>
-- and <Cu2>.
--
-- <Side1> (resp <Side2>) = 1 if the
-- bisector curve is on the left of <Cu1> (resp <Cu2>)
-- else <Side1> (resp <Side2>) = -1.
--
-- the Bisector is trimmed by the Point <Origin>.
-- <DistMax> is used to trim the bisector.The distance
-- between the points of the bisector and <Cu> is smaller
-- than <DistMax>.
--
returns mutable BisecCC from Bisector;
Perform (me : mutable ;
Cu1 : Curve from Geom2d;
Cu2 : Curve from Geom2d;
Side1 : Real ;
Side2 : Real ;
Origin : Pnt2d from gp ;
DistMax : Real = 500 )
---Purpose: Computes the bisector between the curves <Cu1>
-- and <Cu2>.
--
-- <Side1> (resp <Side2>) = 1 if the
-- bisector curve is on the left of <Cu1> (resp <Cu2>)
-- else <Side1> (resp <Side2>) = -1.
--
-- the Bisector is trimmed by the Point <Origin>.
--
-- <DistMax> is used to trim the bisector.The distance
-- between the points of the bisector and <Cu> is smaller
-- than <DistMax>.
--
is static;
IsExtendAtStart (me) returns Boolean from Standard
is static;
IsExtendAtEnd (me) returns Boolean from Standard
is static;
--
Reverse (me : mutable)
is static;
ReversedParameter(me; U : Real) returns Real
is static;
IsCN (me; N : Integer) returns Boolean
--- Purpose : Returns the order of continuity of the curve.
raises RangeError
--- Purpose : Raised if N < 0.
is static;
ChangeGuide (me) returns mutable like me
---Purpose: The parameter on <me> is linked to the parameter
-- on the first curve. This method creates the same bisector
-- where the curves are inversed.
is static;
Copy (me) returns mutable like me
is static;
Transform (me : mutable; T : Trsf2d)
--- Purpose :
-- Transformation of a geometric object. This tansformation
-- can be a translation, a rotation, a symmetry, a scaling
-- or a complex transformation obtained by combination of
-- the previous elementaries transformations.
is static;
--
FirstParameter(me) returns Real
is static;
LastParameter(me) returns Real
is static;
Continuity(me) returns Shape from GeomAbs
is static;
NbIntervals (me) returns Integer
---Purpose: If necessary, breaks the curve in intervals of
-- continuity <C1>. And returns the number of
-- intervals.
is static;
IntervalFirst(me ; Index : Integer from Standard) returns Real
---Purpose: Returns the first parameter of the current
-- interval.
is static;
IntervalLast(me ; Index : Integer from Standard) returns Real
---Purpose: Returns the last parameter of the current
-- interval.
is static;
IntervalContinuity(me) returns Shape from GeomAbs
is static;
IsClosed(me) returns Boolean
is static;
IsPeriodic(me) returns Boolean
is static;
ValueAndDist (me; U : Real; U1, U2, Distance : in out Real)
---Purpose: Returns the point of parameter U.
-- Computes the distance between the current point and
-- the two curves I separate.
-- Computes the parameters on each curve corresponding
-- of the projection of the current point.
returns Pnt2d from gp
is static;
ValueByInt (me; U : Real; U1, U2, Distance : in out Real)
returns Pnt2d from gp
---Purpose: Returns the point of parameter U.
-- Computes the distance between the current point and
-- the two curves I separate.
-- Computes the parameters on each curve corresponding
-- of the projection of the current point.
is static;
D0 (me; U : Real; P : out Pnt2d)
is static;
D1 (me; U : Real; P : out Pnt2d from gp ; V : out Vec2d from gp)
is static ;
D2 (me; U : Real; P : out Pnt2d from gp; V1, V2 : out Vec2d from gp)
is static;
D3 (me; U : Real; P : out Pnt2d from gp; V1, V2, V3 : out Vec2d from gp)
is static;
DN (me; U : Real; N : Integer)
returns Vec2d from gp
is static;
Values (me ;
U : Real ;
N : Integer ;
P : in out Pnt2d ;
V1 : in out Vec2d ;
V2 : in out Vec2d ;
V3 : in out Vec2d )
is static private;
IsEmpty (me) returns Boolean from Standard
is static;
LinkBisCurve (me ; U : Real) returns Real from Standard
---Purpose: Returns the parameter on the curve1 of the projection
-- of the point of parameter U on <me>.
is static;
LinkCurveBis (me ; U : Real) returns Real from Standard
---Purpose: Returns the reciproque of LinkBisCurve.
is static;
Parameter ( me ; P : Pnt2d from gp) returns Real
is static;
Curve (me ; IndCurve : Integer) returns Curve from Geom2d
is static;
Polygon (me) returns PolyBis from Bisector
---C++: return const&
is static;
Dump (me; Deep : Integer = 0; Offset : Integer = 0) is static;
SupLastParameter (me : mutable)
is static private;
Extension(me ;
U : Real ;
U1, U2, Dist : in out Real ;
T1 : in out Vec2d from gp )
returns Pnt2d from gp
is static private;
SearchBound (me ; U1,U2 : Real from Standard)
returns Real from Standard
is static private;
ComputePointEnd (me : mutable)
is static private;
Curve (me : mutable; Index : Integer; C : Curve from Geom2d)
is static private;
Sign (me : mutable; Index : Integer; Sign : Real from Standard)
is static private;
Polygon (me : mutable; Poly : PolyBis from Bisector)
is static private;
DistMax (me : mutable; DistMax : Real from Standard)
is static private;
IsConvex (me : mutable; Index : Integer; IsConvex : Boolean from Standard)
is static private;
IsEmpty (me : mutable; IsEmpty : Boolean from Standard)
is static private;
ExtensionStart (me : mutable; ExtensionStart : Boolean from Standard)
is static private;
ExtensionEnd (me : mutable; ExtensionEnd : Boolean from Standard)
is static private;
PointStart (me : mutable; Point : Pnt2d from gp)
is static private;
PointEnd (me : mutable; Point : Pnt2d from gp)
is static private;
StartIntervals (me : mutable; StartIntervals : SequenceOfReal from TColStd)
is static private;
EndIntervals (me : mutable; EndIntervals : SequenceOfReal from TColStd)
is static private;
FirstParameter (me : mutable; U1 : Real from Standard)
is static private;
LastParameter (me : mutable; U1 : Real from Standard)
is static private;
fields
curve1 : Curve from Geom2d;
curve2 : Curve from Geom2d;
sign1 : Real from Standard;
sign2 : Real from Standard;
startIntervals : SequenceOfReal from TColStd;
endIntervals : SequenceOfReal from TColStd;
currentInterval: Integer from Standard;
myPolygon : PolyBis from Bisector;
shiftParameter : Real from Standard;
distMax : Real from Standard;
isEmpty : Boolean from Standard;
isConvex1 : Boolean from Standard;
isConvex2 : Boolean from Standard;
extensionStart : Boolean from Standard;
extensionEnd : Boolean from Standard;
pointStart : Pnt2d from gp;
pointEnd : Pnt2d from gp;
end BisecCC;
|