1 -- File: GeomLib_CheckBSplineCurve.cdl
2 -- Created: Wed May 28 16:31:08 1997
3 -- Author: Xavier BENVENISTE
4 -- <xab@zozox.paris1.matra-dtv.fr>
5 ---Copyright: Matra Datavision 1997
9 class CheckBSplineCurve from GeomLib
11 ---Purpose: this class is used to construct the BSpline curve
12 -- from an Approximation ( ApproxAFunction from AdvApprox).
17 BSplineCurve from Geom,
18 BSplineCurve from Geom2d
23 OutOfRange from Standard
27 Create( Curve : BSplineCurve from Geom ;
28 Tolerance : Real from Standard ;
29 AngularTolerance : Real from Standard)
30 returns CheckBSplineCurve from GeomLib;
32 IsDone(me) returns Boolean from Standard
36 NeedTangentFix(me; FirstFlag : in out Boolean from Standard ;
37 SecondFlag : in out Boolean from Standard) ;
38 FixTangent (me : in out ; FirstFlag : Boolean from Standard ;
39 LastFlag : Boolean from Standard) ;
41 FixedTangent (me : in out ; FirstFlag : Boolean from Standard ;
42 LastFlag : Boolean from Standard)
43 ---Purpose: modifies the curve
44 -- by fixing the first or the last tangencies
46 returns BSplineCurve from Geom
48 OutOfRange from Standard,
49 ---Purpose: if Index3D not in the Range [1,Nb3dSpaces]
51 ---Purpose: if the Approx is not Done
57 myCurve : BSplineCurve from Geom ;
58 myDone : Boolean from Standard ;
59 myFixFirstTangent : Boolean from Standard ;
60 myFixLastTangent : Boolean from Standard ;
61 myAngularTolerance : Real from Standard ;
62 myTolerance : Real from Standard ;
63 myFirstPole : Pnt from gp ;
64 -- the second pole that controls first tangency
65 myLastPole : Pnt from gp ;
66 -- the before last pole that controls last tangency
68 end CheckBSplineCurve;