1 -- Created on: 1997-04-29
2 -- Created by: Stagiaire Francois DUMONT
3 -- Copyright (c) 1997-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class CompCurveToBSplineCurve from Geom2dConvert
19 ---Purpose: Concat sevral curve in an BSplineCurve
22 ParameterisationType from Convert,
23 BoundedCurve from Geom2d,
24 BSplineCurve from Geom2d
30 Create(Parameterisation : ParameterisationType from Convert = Convert_TgtThetaOver2);
31 ---Purpose: Initialize the algorithme
32 -- - Parameterisation is used to convert
34 Create (BasisCurve : BoundedCurve from Geom2d;
35 Parameterisation : ParameterisationType from Convert
36 = Convert_TgtThetaOver2)
37 ---Purpose: Initialize the algorithme with one curve
38 -- - Parameterisation is used to convert
39 returns CompCurveToBSplineCurve;
42 NewCurve : BoundedCurve from Geom2d;
43 Tolerance: Real from Standard;
44 After : Boolean from Standard = Standard_False)
45 ---Purpose: Append a curve in the BSpline
46 -- Return False if the curve is not G0 with the BSplineCurve.
47 -- Tolerance is used to check continuity and decrease
48 -- Multiplicty at the common Knot
49 -- After is usefull if BasisCurve is a closed curve .
54 FirstCurve : in out BSplineCurve from Geom2d;
55 SecondCurve: in out BSplineCurve from Geom2d;
56 After : Boolean from Standard)
57 ---Purpose: Concat two BSplineCurves.
60 BSplineCurve(me) returns BSplineCurve from Geom2d;
63 ---Purpose: Clear result curve
66 myCurve : BSplineCurve from Geom2d;
68 myType : ParameterisationType from Convert;
70 end CompCurveToBSplineCurve;