0022864: The algorithm BiTgte_Blend obtains instable results
[occt.git] / src / BiTgte / BiTgte_CurveOnVertex.cxx
CommitLineData
7fd59977 1// File: BiTgte_CurveOnVertex.cxx
2// Created: Fri Mar 21 16:43:32 1997
3// Author: Bruno DUMORTIER
4// <dub@brunox.paris1.matra-dtv.fr>
5
6
7#include <BiTgte_CurveOnVertex.ixx>
8
9#include <BiTgte_HCurveOnVertex.hxx>
10#include <BRep_Tool.hxx>
11#include <Standard_NotImplemented.hxx>
12
13
14//=======================================================================
15//function : BiTgte_CurveOnVertex
16//purpose :
17//======================================================================
18
19BiTgte_CurveOnVertex::BiTgte_CurveOnVertex()
20{
21}
22
23
24//=======================================================================
25//function : BiTgte_CurveOnVertex
26//purpose :
27//=======================================================================
28
29BiTgte_CurveOnVertex::BiTgte_CurveOnVertex(const TopoDS_Edge& EonF,
30 const TopoDS_Vertex& V )
31{
32 Init(EonF,V);
33}
34
35
36//=======================================================================
37//function : Init
38//purpose :
39//=======================================================================
40
41void BiTgte_CurveOnVertex::Init(const TopoDS_Edge& EonF,
42 const TopoDS_Vertex& V )
43{
44 BRep_Tool::Range(EonF,myFirst,myLast);
45 myPnt = BRep_Tool::Pnt(V);
46}
47
48
49//=======================================================================
50//function : FirstParameter
51//purpose :
52//=======================================================================
53
54Standard_Real BiTgte_CurveOnVertex::FirstParameter() const
55{
56 return myFirst;
57}
58
59
60//=======================================================================
61//function : LastParameter
62//purpose :
63//=======================================================================
64
65Standard_Real BiTgte_CurveOnVertex::LastParameter() const
66{
67 return myLast;
68}
69
70
71//=======================================================================
72//function :
73//purpose :
74//=======================================================================
75
76GeomAbs_Shape BiTgte_CurveOnVertex::Continuity() const
77{
78 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
79 return GeomAbs_C0;
80}
81
82
83//=======================================================================
84//function :
85//purpose :
86//=======================================================================
87
88Standard_Integer BiTgte_CurveOnVertex::NbIntervals(const GeomAbs_Shape S) const
89{
90 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
91 return 0;
92}
93
94
95//=======================================================================
96//function :
97//purpose :
98//=======================================================================
99
100void BiTgte_CurveOnVertex::Intervals(TColStd_Array1OfReal& T,
101 const GeomAbs_Shape S) const
102{
103 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
104}
105
106
107//=======================================================================
108//function :
109//purpose :
110//=======================================================================
111
112Handle(Adaptor3d_HCurve) BiTgte_CurveOnVertex::Trim(const Standard_Real First,
113 const Standard_Real Last,
114 const Standard_Real Tol)
115const
116{
117 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
118 Handle(BiTgte_HCurveOnVertex) HC;
119 return HC;
120}
121
122
123//=======================================================================
124//function :
125//purpose :
126//=======================================================================
127
128Standard_Boolean BiTgte_CurveOnVertex::IsClosed() const
129{
130 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
131 return Standard_False;
132}
133
134
135//=======================================================================
136//function :
137//purpose :
138//=======================================================================
139
140Standard_Boolean BiTgte_CurveOnVertex::IsPeriodic() const
141{
142 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
143 return Standard_False;
144}
145
146
147//=======================================================================
148//function :
149//purpose :
150//=======================================================================
151
152Standard_Real BiTgte_CurveOnVertex::Period() const
153{
154 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
155 return 0.;
156}
157
158
159//=======================================================================
160//function :
161//purpose :
162//=======================================================================
163
164gp_Pnt BiTgte_CurveOnVertex::Value(const Standard_Real U) const
165{
166 return myPnt;
167}
168
169
170//=======================================================================
171//function :
172//purpose :
173//=======================================================================
174
175void BiTgte_CurveOnVertex::D0(const Standard_Real U,gp_Pnt& P) const
176{
177 P = myPnt;
178}
179
180
181//=======================================================================
182//function :
183//purpose :
184//=======================================================================
185
186void BiTgte_CurveOnVertex::D1(const Standard_Real U,gp_Pnt& P,gp_Vec& V) const
187{
188 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
189}
190
191
192//=======================================================================
193//function :
194//purpose :
195//=======================================================================
196
197void BiTgte_CurveOnVertex::D2(const Standard_Real U,gp_Pnt& P,
198 gp_Vec& V1,gp_Vec& V2) const
199{
200 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
201}
202
203
204//=======================================================================
205//function :
206//purpose :
207//=======================================================================
208
209void BiTgte_CurveOnVertex::D3(const Standard_Real U,gp_Pnt& P,
210 gp_Vec& V1,gp_Vec& V2,gp_Vec& V3) const
211{
212 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
213}
214
215
216//=======================================================================
217//function :
218//purpose :
219//=======================================================================
220
221gp_Vec BiTgte_CurveOnVertex::DN(const Standard_Real U,
222 const Standard_Integer N) const
223{
224 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
225 return gp_Vec();
226}
227
228
229//=======================================================================
230//function :
231//purpose :
232//=======================================================================
233
234Standard_Real BiTgte_CurveOnVertex::Resolution(const Standard_Real R3d) const
235{
236 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
237 return 0.;
238}
239
240
241//=======================================================================
242//function :
243//purpose :
244//=======================================================================
245
246GeomAbs_CurveType BiTgte_CurveOnVertex::GetType() const
247{
248 return GeomAbs_OtherCurve;
249}
250
251
252//=======================================================================
253//function :
254//purpose :
255//=======================================================================
256
257gp_Lin BiTgte_CurveOnVertex::Line() const
258{
259 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
260 return gp_Lin();
261}
262
263
264//=======================================================================
265//function :
266//purpose :
267//=======================================================================
268
269gp_Circ BiTgte_CurveOnVertex::Circle() const
270{
271 Standard_NoSuchObject::Raise("BiTgte_CurveOnVertex::Circle");
272 return gp_Circ();
273}
274
275
276//=======================================================================
277//function :
278//purpose :
279//=======================================================================
280
281gp_Elips BiTgte_CurveOnVertex::Ellipse() const
282{
283 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
284 return gp_Elips();
285}
286
287
288//=======================================================================
289//function :
290//purpose :
291//=======================================================================
292
293gp_Hypr BiTgte_CurveOnVertex::Hyperbola() const
294{
295 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
296 return gp_Hypr();
297}
298
299
300//=======================================================================
301//function :
302//purpose :
303//=======================================================================
304
305gp_Parab BiTgte_CurveOnVertex::Parabola() const
306{
307 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
308 return gp_Parab();
309}
310
311
312//=======================================================================
313//function :
314//purpose :
315//=======================================================================
316
317Standard_Integer BiTgte_CurveOnVertex::Degree() const
318{
319 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
320 return 0;
321}
322
323
324//=======================================================================
325//function :
326//purpose :
327//=======================================================================
328
329Standard_Boolean BiTgte_CurveOnVertex::IsRational() const
330{
331 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
332 return Standard_False;
333}
334
335
336//=======================================================================
337//function :
338//purpose :
339//=======================================================================
340
341Standard_Integer BiTgte_CurveOnVertex::NbPoles() const
342{
343 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
344 return 0;
345}
346
347
348//=======================================================================
349//function :
350//purpose :
351//=======================================================================
352
353Standard_Integer BiTgte_CurveOnVertex::NbKnots() const
354{
355 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
356 return 0;
357}
358
359
360//=======================================================================
361//function :
362//purpose :
363//=======================================================================
364
365Handle(Geom_BezierCurve) BiTgte_CurveOnVertex::Bezier() const
366{
367 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
368 Handle(Geom_BezierCurve) B;
369 return B;
370}
371
372
373//=======================================================================
374//function :
375//purpose :
376//=======================================================================
377
378Handle(Geom_BSplineCurve) BiTgte_CurveOnVertex::BSpline() const
379{
380 Standard_NotImplemented::Raise("BiTgte_CurveOnVertex");
381 Handle(Geom_BSplineCurve) B;
382 return B;
383}
384
385