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
|
-- File: AbscissaPoint.cdl
-- Created: Mon Jul 15 15:18:50 1991
-- Author: Isabelle GRIGNON
-- <isg@topsn3>
---Copyright: Matra Datavision 1991, 1992
class AbscissaPoint from CPnts
---Purpose: the algorithm computes a point on a curve at a given
-- distance from another point on the curve
--
-- We can instantiates with
-- Curve from Adaptor3d, Pnt from gp, Vec from gp
--
-- or
-- Curve2d from Adaptor2d, Pnt2d from gp, Vec2d from gp
uses
Curve2d from Adaptor2d,
Curve from Adaptor3d,
MyRootFunction from CPnts
raises NotDone from StdFail,
ConstructionError from Standard
is
Length(myclass; C : Curve from Adaptor3d) returns Real;
---Purpose: Computes the length of the Curve <C>.
Length(myclass; C : Curve2d from Adaptor2d) returns Real;
---Purpose: Computes the length of the Curve <C>.
Length(myclass; C : Curve from Adaptor3d; Tol : Real) returns Real;
---Purpose: Computes the length of the Curve <C> with the given tolerance.
Length(myclass; C : Curve2d from Adaptor2d; Tol : Real) returns Real;
---Purpose: Computes the length of the Curve <C> with the given tolerance.
Length(myclass; C : Curve from Adaptor3d; U1, U2 : Real) returns Real;
---Purpose: Computes the length of the Curve <C> between <U1> and <U2>.
Length(myclass; C : Curve2d from Adaptor2d; U1, U2 : Real) returns Real;
---Purpose: Computes the length of the Curve <C> between <U1> and <U2>.
Length(myclass; C : Curve from Adaptor3d; U1, U2, Tol : Real) returns Real;
---Purpose: Computes the length of the Curve <C> between <U1> and <U2> with the given tolerance.
Length(myclass; C : Curve2d from Adaptor2d; U1, U2, Tol : Real) returns Real;
---Purpose: Computes the length of the Curve <C> between <U1> and <U2> with the given tolerance.
Create
---Purpose: creation of a indefinite AbscissaPoint.
returns AbscissaPoint;
Create (C : Curve from Adaptor3d; Abscissa, U0, Resolution : Real)
---Purpose: the algorithm computes a point on a curve <Curve> at the
-- distance <Abscissa> from the point of parameter <U0>.
-- <Resolution> is the error allowed in the computation.
-- The computed point can be outside of the curve 's bounds.
returns AbscissaPoint
raises ConstructionError;
-- raised when it is not possible to compute the curve's length or if
-- the curve is null;
Create (C : Curve2d from Adaptor2d; Abscissa, U0, Resolution : Real)
---Purpose: the algorithm computes a point on a curve <Curve> at the
-- distance <Abscissa> from the point of parameter <U0>.
-- <Resolution> is the error allowed in the computation.
-- The computed point can be outside of the curve 's bounds.
returns AbscissaPoint
raises ConstructionError;
-- raised when it is not possible to compute the curve's length or if
-- the curve is null;
Create (C : Curve from Adaptor3d; Abscissa, U0, Ui, Resolution : Real)
---Purpose: the algorithm computes a point on a curve <Curve> at the
-- distance <Abscissa> from the point of parameter <U0>.
-- <Ui> is the starting value used in the iterative process
-- which find the solution, it must be closed to the final
-- solution
-- <Resolution> is the error allowed in the computation.
-- The computed point can be outside of the curve 's bounds.
returns AbscissaPoint
raises ConstructionError;
-- raised when it is not possible to compute the curve's length or if
-- the curve is null;
Create (C : Curve2d from Adaptor2d; Abscissa, U0, Ui, Resolution : Real)
---Purpose: the algorithm computes a point on a curve <Curve> at the
-- distance <Abscissa> from the point of parameter <U0>.
-- <Ui> is the starting value used in the iterative process
-- which find the solution, it must be closed to the final
-- solution
-- <Resolution> is the error allowed in the computation.
-- The computed point can be outside of the curve 's bounds.
returns AbscissaPoint
raises ConstructionError;
-- raised when it is not possible to compute the curve's length or if
-- the curve is null;
Init(me: in out; C: Curve from Adaptor3d)
---Purpose: Initializes the resolution function with <C>.
is static;
Init(me: in out; C: Curve2d from Adaptor2d)
---Purpose: Initializes the resolution function with <C>.
is static;
-- these two methods are introduced by rbv to control the tolerance
Init(me: in out; C: Curve from Adaptor3d; Tol : Real)
---Purpose: Initializes the resolution function with <C>.
is static;
Init(me: in out; C: Curve2d from Adaptor2d; Tol : Real)
---Purpose: Initializes the resolution function with <C>.
is static;
--
Init(me: in out; C: Curve from Adaptor3d; U1, U2: Real)
---Purpose: Initializes the resolution function with <C>
-- between U1 and U2.
is static;
Init(me: in out; C: Curve2d from Adaptor2d; U1, U2: Real)
---Purpose: Initializes the resolution function with <C>
-- between U1 and U2.
is static;
-- these two methods are introduced by rbv to control the tolerance
Init(me: in out; C: Curve from Adaptor3d; U1, U2, Tol: Real)
---Purpose: Initializes the resolution function with <C>
-- between U1 and U2.
is static;
Init(me: in out; C: Curve2d from Adaptor2d; U1, U2, Tol: Real)
---Purpose: Initializes the resolution function with <C>
-- between U1 and U2.
is static;
Perform(me: in out; Abscissa, U0, Resolution : Real)
---Purpose: Computes the point at the distance <Abscissa> of
-- the curve.
is static;
Perform(me: in out; Abscissa, U0, Ui, Resolution : Real)
---Purpose: Computes the point at the distance <Abscissa> of
-- the curve.
is static;
AdvPerform(me: in out; Abscissa, U0, Ui, Resolution : Real)
---Purpose: Computes the point at the distance <Abscissa> of
-- the curve; performs more appropriate tolerance managment;
-- to use this method in right way it is necessary to call
-- empty consructor. then call method Init with
-- Tolerance = Resolution, then call AdvPermorm.
is static;
IsDone(me)
---Purpose: True if the computation was successful, False otherwise.
---C++: inline
returns Boolean
is static;
Parameter(me) returns Real
---Purpose: Returns the parameter of the solution.
--
---C++: inline
raises NotDone from StdFail;
-- if the computation was not done.
SetParameter(me : in out; P : Real);
---Purpose: Enforce the solution, used by GCPnts.
--
---C++: inline
fields
myDone : Boolean;
myL : Real;
myParam : Real;
myUMin : Real;
myUMax : Real from Standard;
myF : MyRootFunction from CPnts;
end AbscissaPoint;
|