0024181: Text to BRep functionality
[occt.git] / src / Geom2dConvert / Geom2dConvert_CompCurveToBSplineCurve.cdl
CommitLineData
b311480e 1-- Created on: 1997-04-29
2-- Created by: Stagiaire Francois DUMONT
3-- Copyright (c) 1997-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class CompCurveToBSplineCurve from Geom2dConvert
24
25 ---Purpose: Concat sevral curve in an BSplineCurve
26
27uses
28 ParameterisationType from Convert,
29 BoundedCurve from Geom2d,
30 BSplineCurve from Geom2d
31
32--raises
33
34is
35
b514beda 36 Create(Parameterisation : ParameterisationType from Convert = Convert_TgtThetaOver2);
37 ---Purpose: Initialize the algorithme
38 -- - Parameterisation is used to convert
39
7fd59977 40 Create (BasisCurve : BoundedCurve from Geom2d;
41 Parameterisation : ParameterisationType from Convert
42 = Convert_TgtThetaOver2)
43 ---Purpose: Initialize the algorithme with one curve
44 -- - Parameterisation is used to convert
45 returns CompCurveToBSplineCurve;
b514beda 46
7fd59977 47 Add (me : in out;
48 NewCurve : BoundedCurve from Geom2d;
49 Tolerance: Real from Standard;
50 After : Boolean from Standard = Standard_False)
51 ---Purpose: Append a curve in the BSpline
52 -- Return False if the curve is not G0 with the BSplineCurve.
53 -- Tolerance is used to check continuity and decrease
54 -- Multiplicty at the common Knot
55 -- After is usefull if BasisCurve is a closed curve .
56 returns Boolean;
57
58
59 Add (me : in out;
60 FirstCurve : in out BSplineCurve from Geom2d;
61 SecondCurve: in out BSplineCurve from Geom2d;
62 After : Boolean from Standard)
63 ---Purpose: Concat two BSplineCurves.
64 is private;
65
66 BSplineCurve(me) returns BSplineCurve from Geom2d;
67
b514beda 68 Clear(me : in out);
69 ---Purpose: Clear result curve
70
7fd59977 71fields
72 myCurve : BSplineCurve from Geom2d;
73 myTol : Real;
74 myType : ParameterisationType from Convert;
75
76end CompCurveToBSplineCurve;