blob: 40285272bf0a8a3550aac62c1eae4d5c9450835d (
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
|
-- File: GeomLib_CheckBSplineCurve.cdl
-- Created: Wed May 28 16:31:08 1997
-- Author: Xavier BENVENISTE
-- <xab@zozox.paris1.matra-dtv.fr>
---Copyright: Matra Datavision 1997
class Check2dBSplineCurve from GeomLib
---Purpose: this class is used to construct the BSpline curve
-- from an Approximation ( ApproxAFunction from AdvApprox).
uses
Pnt2d from gp,
BSplineCurve from Geom2d
raises
NotDone from StdFail,
OutOfRange from Standard
is
Create( Curve : BSplineCurve from Geom2d ;
Tolerance : Real from Standard ;
AngularTolerance : Real from Standard)
returns Check2dBSplineCurve from GeomLib;
IsDone(me) returns Boolean from Standard
---C++: inline
is static;
NeedTangentFix(me; FirstFlag : in out Boolean from Standard ;
SecondFlag : in out Boolean from Standard) ;
FixTangent (me : in out ; FirstFlag : Boolean from Standard ;
LastFlag : Boolean from Standard) ;
FixedTangent (me : in out ; FirstFlag : Boolean from Standard ;
LastFlag : Boolean from Standard)
---Purpose: modifies the curve
-- by fixing the first or the last tangencies
--
returns BSplineCurve from Geom2d
raises
OutOfRange from Standard,
---Purpose: if Index3D not in the Range [1,Nb3dSpaces]
NotDone from StdFail
---Purpose: if the Approx is not Done
is static;
fields
myCurve : BSplineCurve from Geom2d ;
myDone : Boolean from Standard ;
myFixFirstTangent : Boolean from Standard ;
myFixLastTangent : Boolean from Standard ;
myAngularTolerance : Real from Standard ;
myTolerance : Real from Standard ;
myFirstPole : Pnt2d from gp ;
-- the second pole that controls first tangency
myLastPole : Pnt2d from gp ;
-- the before last pole that controls last tangency
end Check2dBSplineCurve;
|